linux/drivers/staging/greybus
Amit Kumar Mahapatra caa9d3475b
staging: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230310173217.3429788-6-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-11 12:34:05 +00:00
..
Documentation
tools staging: greybus: loopback_test: Remove extra blank lines 2022-12-05 13:28:41 +01:00
arche_platform.h
arche-apb-ctrl.c staging: greybus: correct typo in comment 2022-04-13 08:49:48 +02:00
arche-platform.c staging: greybus: correct typo in comment 2022-05-05 23:19:14 +02:00
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c staging: greybus: codecs: Drop empty platform remove function 2023-01-17 19:12:35 +01:00
audio_codec.h
audio_gb.c
audio_helper.c staging: greybus: audio_helper: remove unused and wrong debugfs usage 2022-09-09 09:53:26 +02:00
audio_helper.h
audio_manager_module.c staging: greybus: auto_manager: use default_groups in kobj_type 2021-12-30 11:54:26 +01:00
audio_manager_private.h
audio_manager_sysfs.c
audio_manager.c
audio_manager.h
audio_module.c
audio_topology.c staging: greybus: audio: Check null pointer 2022-01-06 14:46:11 +01:00
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c staging: greybus: Fix indentation in fw-management.c 2022-06-06 07:56:25 +02:00
gb-camera.h
gbphy.c driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
gbphy.h
gpio.c staging: greybus: gpio: Replace macro irq_data_to_gpio_chip with function 2023-01-17 19:18:54 +01:00
greybus_authentication.h
greybus_firmware.h
hid.c staging: greybus: hid: Constify lowlevel HID driver 2023-02-06 15:08:45 +01:00
i2c.c
Kconfig
light.c
log.c
loopback.c staging: greybus: loopback: fix a spelling error. 2022-06-07 13:04:42 +02:00
Makefile
power_supply.c
pwm.c staging: greybus: pwm: Drop assignment to struct pwm_chip::base 2022-04-12 15:49:20 +02:00
raw.c
sdio.c staging: greybus: Remove redundant 'flush_workqueue()' calls 2022-02-15 17:05:56 +01:00
spi.c
spilib.c staging: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:05 +00:00
spilib.h
TODO
uart.c tty: Call ->dtr_rts() parameter active consistently 2023-01-19 16:04:35 +01:00
usb.c staging: greybus: Replace zero-length array by DECLARE_FLEX_ARRAY() helper 2023-01-17 19:18:47 +01:00
vibrator.c