]> git.baikalelectronics.ru Git - kernel.git/commit
net: ath11k: constify ath11k_thermal_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 26 Aug 2020 22:56:08 +0000 (00:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:21:17 +0000 (16:21 -0700)
commit10ffea3d26d58c3b63e935adebca277da2d51da9
tree7c377fcc51b1ea336d50fc3083685d42b1901567
parent4c8cb029e0d22abb94a2b21092caa7fcae3b4079
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>
drivers/net/wireless/ath/ath11k/thermal.c