Commit cc50ba5e authored by srplinux2008's avatar srplinux2008 Committed by Eduardo Valentin

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: default avatarsumeet p <srplinux2008@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent ffe6e16f
...@@ -901,7 +901,7 @@ static int throt_set_cdev_state(struct thermal_cooling_device *cdev, ...@@ -901,7 +901,7 @@ static int throt_set_cdev_state(struct thermal_cooling_device *cdev,
return 0; 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_max_state = throt_get_cdev_max_state,
.get_cur_state = throt_get_cdev_cur_state, .get_cur_state = throt_get_cdev_cur_state,
.set_cur_state = throt_set_cdev_state, .set_cur_state = throt_set_cdev_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment