linux/arch/powerpc/platforms/83xx
Amit Kumar Mahapatra 3aba06a9fe
powerpc/83xx/mpc832x_rdb: Replace all spi->chip_select 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>
Link: https://lore.kernel.org/r/20230310173217.3429788-8-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-11 12:34:07 +00:00
..
asp834x.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
km83xx.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
Makefile powerpc: remove retired sbc834x support 2018-05-03 22:32:30 +10:00
mcu_mpc8349emitx.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
misc.c powerpc/32: Remove the 'nobats' kernel parameter 2022-06-29 16:59:06 +10:00
mpc83xx.h powerpc/83xx: Add __init attribute to eligible functions 2021-12-23 22:33:18 +11:00
mpc830x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc831x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc832x_mds.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc832x_rdb.c powerpc/83xx/mpc832x_rdb: Replace all spi->chip_select references with function call 2023-03-11 12:34:07 +00:00
mpc834x_itx.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc834x_mds.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc836x_mds.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc836x_rdk.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc837x_mds.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc837x_rdb.c powerpc/83xx: Add __init attribute to eligible functions 2021-12-23 22:33:18 +11:00
suspend-asm.S powerpc/83xx: Blacklist mpc83xx_deep_resume() for kprobe 2020-06-02 20:59:09 +10:00
suspend.c powerpc/platforms/83xx/suspend: Remove write-only global variable 2022-07-28 16:22:14 +10:00
usb.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00