wifi: ath10k: fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 09:12:24 +0000 (11:12 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 23 Aug 2023 14:10:04 +0000 (17:10 +0300)
commitde43b07db2a1af0d11ed167bb028f1038ae04086
tree1412451ed2ee6216d9d479148caa39e38d10490c
parent6763ef191d672ff3c2db0622652d49b0c0a60c4a
wifi: ath10k: fix Wvoid-pointer-to-enum-cast warning

'hw_rev' is an enum, thus cast of pointer on 64-bit compile test with W=1
causes:

  ath10k/ahb.c:736:11: error: cast to smaller integer type 'enum ath10k_hw_rev' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230810091224.70088-2-krzysztof.kozlowski@linaro.org
drivers/net/wireless/ath/ath10k/ahb.c