wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 27 Jul 2022 16:16:53 +0000 (17:16 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 29 Jul 2022 13:24:38 +0000 (16:24 +0300)
commit37de943d01539a0b36ab52cf73c1dfad140f697a
tree819346019ea3e60f79a953570b15331e65d4585d
parent5b7fc772e657824455507fc97f6b92287075a237
wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file

The naming of the get/set/clear firmware feature capability bits doesn't
really follow the established namespace pattern of
wcn36xx_logicalblock_do_something();

The feature bits are accessed by smd.c and main.c. It would be nice to
display the found feature bits in debugfs. To do so though we should tidy
up the namespace a bit.

Move the firmware feature exchange API to its own file - firmware.c giving
us the opportunity to functionally decompose other firmware related
accessors as appropriate in future.

Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220727161655.2286867-3-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/Makefile
drivers/net/wireless/ath/wcn36xx/firmware.c [new file with mode: 0644]
drivers/net/wireless/ath/wcn36xx/firmware.h [new file with mode: 0644]
drivers/net/wireless/ath/wcn36xx/hal.h
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/smd.h