Skip to content

Commit

Permalink
thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops
Browse files Browse the repository at this point in the history
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 <srplinux2008@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
  • Loading branch information
srplinux2008 authored and Eduardo Valentin committed Jun 1, 2018
1 parent ffe6e16 commit cc50ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/tegra/soctherm.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,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,
Expand Down

0 comments on commit cc50ba5

Please sign in to comment.