2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/wireless/st/cw1200
Amit Kumar Mahapatra 25fd0550d9
net: Replace all spi->chip_select and spi->cs_gpiod references with function call
Supporting multi-cs in spi drivers would require the chip_select & cs_gpiod
members of struct spi_device to be an array. But changing the type of these
members to array would break the spi driver functionality. To make the
transition smoother introduced four new APIs to get/set the
spi->chip_select & spi->cs_gpiod and replaced all spi->chip_select and
spi->cs_gpiod references with get or set API calls.
While adding multi-cs support in further patches the chip_select & cs_gpiod
members of the spi_device structure would be converted to arrays & the
"idx" parameter of the APIs would be used as array index i.e.,
spi->chip_select[idx] & spi->cs_gpiod[idx] respectively.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230310173217.3429788-3-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-11 12:34:02 +00:00
..
bh.c wifi: cw1200: cleanup the code a bit 2022-05-30 11:29:15 +03:00
bh.h
cw1200_sdio.c cw1200: add missing MODULE_DEVICE_TABLE 2021-06-15 16:38:22 +03:00
cw1200_spi.c net: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:02 +00:00
cw1200.h
debug.c
debug.h
fwio.c
fwio.h
hwbus.h
hwio.c
hwio.h
Kconfig
main.c wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
Makefile
pm.c
pm.h
queue.c cw1200: fix incorrect check to determine if no element is found in list 2022-09-27 09:08:31 +03:00
queue.h
scan.c cw1200: Revert unnecessary patches that fix unreal use-after-free bugs 2021-06-15 16:41:22 +03:00
scan.h
sta.c wifi: mac80211: extend ieee80211_nullfunc_get() for MLO 2022-09-06 10:14:24 +02:00
sta.h wifi: mac80211: change QoS settings API to take link into account 2022-07-15 11:43:15 +02:00
txrx.c wifi: cw1200: use get_unaligned_le64() 2022-09-07 11:03:00 +03:00
txrx.h
wsm.c treewide: use get_random_{u8,u16}() when possible, part 1 2022-10-11 17:42:58 -06:00
wsm.h cw1200: Remove unused function pointer typedef wsm_* 2021-04-17 20:25:54 +03:00