thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops
Subsystems (2)
PATCH v2 1/1 thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops
Correct the typecast with const to struct thermal_cooling_device_ops. It is the last argument to the function thermal_of_cooling_device_register and this argument is of type const. So, declare this structure thermal_cooling_device_ops as constant.
Signed-off-by sumeet p <[email protected]>
---
Changes in V2:
- Updated Signed-off-by with correct name.
--- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/tegra/soctherm.c +1 -1
@@ -926,7 +926,7 @@ static int throt_set_cdev_state(struct thermal_cooling_device *cdev,return 0 ; } -static struct thermal_cooling_device_ops throt_cooling_ops = { +static const struct thermal_cooling_device_ops throt_cooling_ops = { .get_max_state = throt_get_cdev_max_state, .get_cur_state = throt_get_cdev_cur_state, .set_cur_state = throt_set_cdev_state,
Signature · 1 line
2.7.4
Quoted 5 lines · sumeet p
Correct the typecast with const to struct
thermal_cooling_device_ops. It is the last argument to the functionthermal_of_cooling_device_registerand this argument is of type const. So, declare this structurethermal_cooling_device_opsas constant.
Quoted 8 lines
Signed-off-by sumeet p <[email protected]>---
Changes in V2:
- Updated Signed-off-by with correct name.--- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by Thierry Reding <[email protected]>