]> 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)
commitc7bf77beed85ae1c4b5f9ea11ec63d41dfa9f416
tree7c377fcc51b1ea336d50fc3083685d42b1901567
parenta1958a4fdcf66d707b1c1912f534f9f67c8f5d10
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