Skip to content

Commit 31ffcb1

Browse files
rikardfalkeborndavem330
authored andcommitted
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>
1 parent 73a9df4 commit 31ffcb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/wireless/ath/ath11k/thermal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ath11k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev,
5353
return ret;
5454
}
5555

56-
static struct thermal_cooling_device_ops ath11k_thermal_ops = {
56+
static const struct thermal_cooling_device_ops ath11k_thermal_ops = {
5757
.get_max_state = ath11k_thermal_get_max_throttle_state,
5858
.get_cur_state = ath11k_thermal_get_cur_throttle_state,
5959
.set_cur_state = ath11k_thermal_set_cur_throttle_state,

0 commit comments

Comments
 (0)