forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
73a9df4c10
commit
31ffcb1077
|
@ -53,7 +53,7 @@ ath11k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
|
||||||
return ret;
|
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_max_state = ath11k_thermal_get_max_throttle_state,
|
||||||
.get_cur_state = ath11k_thermal_get_cur_throttle_state,
|
.get_cur_state = ath11k_thermal_get_cur_throttle_state,
|
||||||
.set_cur_state = ath11k_thermal_set_cur_throttle_state,
|
.set_cur_state = ath11k_thermal_set_cur_throttle_state,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user