mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
thermal:samsung: fix compilation warning
This patch fixes a compilation warning. warning: passing argument 5 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default] include/linux/thermal.h:270:29: note: expected 'struct thermal_zone_device_ops *' but argument is of type 'const struct thermal_zone_device_ops *' Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
b46cce5902
commit
b688b5bf84
@ -280,7 +280,7 @@ static int exynos_get_trend(struct thermal_zone_device *thermal,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Operation callback functions for thermal zone */
|
/* Operation callback functions for thermal zone */
|
||||||
static struct thermal_zone_device_ops const exynos_dev_ops = {
|
static struct thermal_zone_device_ops exynos_dev_ops = {
|
||||||
.bind = exynos_bind,
|
.bind = exynos_bind,
|
||||||
.unbind = exynos_unbind,
|
.unbind = exynos_unbind,
|
||||||
.get_temp = exynos_get_temp,
|
.get_temp = exynos_get_temp,
|
||||||
|
Loading…
Reference in New Issue
Block a user