aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/thermal.c
diff options
context:
space:
mode:
authorRikard Falkeborn2020-08-27 00:56:08 +0200
committerDavid S. Miller2020-08-26 16:21:17 -0700
commit31ffcb1077e6c4d36a67c40bccfb6f2bf0132f87 (patch)
tree7c377fcc51b1ea336d50fc3083685d42b1901567 /drivers/net/wireless/ath/ath11k/thermal.c
parent73a9df4c10292ff4b5a937cac38313568acb05dc (diff)
net: ath11k: constify ath11k_thermal_ops
The only usage of ath11k_thermal_ops is to pass its address to thermal_cooling_device_register() which takes a const pointer. 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/thermal.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/thermal.c b/drivers/net/wireless/ath/ath11k/thermal.c
index 5a7e150c621b..c96b26f39a25 100644
--- a/drivers/net/wireless/ath/ath11k/thermal.c
+++ b/drivers/net/wireless/ath/ath11k/thermal.c
@@ -53,7 +53,7 @@ ath11k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
return ret;
}
-static struct thermal_cooling_device_ops ath11k_thermal_ops = {
+static const struct thermal_cooling_device_ops ath11k_thermal_ops = {
.get_max_state = ath11k_thermal_get_max_throttle_state,
.get_cur_state = ath11k_thermal_get_cur_throttle_state,
.set_cur_state = ath11k_thermal_set_cur_throttle_state,