]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: wilc1000: Fold chip_allow_sleep()/chip_wakeup() into wlan.c
authorMarek Vasut <marex@denx.de>
Fri, 4 Oct 2024 11:44:12 +0000 (13:44 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Oct 2024 16:47:41 +0000 (19:47 +0300)
commit0a6ea2e235efc129da8cde277adc7915077357ba
treeb99e8c3db3899883ae5c06a864b1fd4f07fe9bc2
parent719e469eb9a29a0ef624af51878c8d7217929b84
wifi: wilc1000: Fold chip_allow_sleep()/chip_wakeup() into wlan.c

Neither chip_allow_sleep()/chip_wakeup() is used outside of wlan.c .
Make both functions static and remove both the exported symbol and
entries from wlan.h .

Make chip_allow_sleep() return error code in preparation for the
follow up patches.

Move acquire_bus() and release_bus() to avoid forward declaration
of chip_allow_sleep()/chip_wakeup().

Reviewed-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241004114551.40236-3-marex@denx.de
drivers/net/wireless/microchip/wilc1000/wlan.c
drivers/net/wireless/microchip/wilc1000/wlan.h