diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-11-28 22:03:17 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-12-20 19:10:10 -0600 |
commit | 3925b909f75800e69bd1a65130a0440191a9e60a (patch) | |
tree | 0fef0fbcaedc654500075e38a8e507ea78ffb3a7 /drivers | |
parent | PM: AVS: qcom-cpr: Use div64_ul instead of do_div (diff) | |
download | linux-dev-3925b909f75800e69bd1a65130a0440191a9e60a.tar.xz linux-dev-3925b909f75800e69bd1a65130a0440191a9e60a.zip |
soc: qcom: aoss: constify static struct thermal_cooling_device_ops
The only usage of qmp_cooling_device_ops is to pass its address to
devm_thermal_of_cooling_device_register() which takes a pointer to const
struct thermal_cooling_device_ops as argument. Make it const to allow
the compiler to put it in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211128210317.25504-1-rikard.falkeborn@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/soc/qcom/qcom_aoss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index 34acf58bbb0d..cbe5e39fdaeb 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -352,7 +352,7 @@ static int qmp_cdev_set_cur_state(struct thermal_cooling_device *cdev, return ret; } -static struct thermal_cooling_device_ops qmp_cooling_device_ops = { +static const struct thermal_cooling_device_ops qmp_cooling_device_ops = { .get_max_state = qmp_cdev_get_max_state, .get_cur_state = qmp_cdev_get_cur_state, .set_cur_state = qmp_cdev_set_cur_state, |