diff options
author | Amit Kumar Mahapatra <[email protected]> | 2023-01-20 00:23:30 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-02-01 15:08:37 +0000 |
commit | 303feb3cc06ac0665d0ee9c1414941200e60e8a3 (patch) | |
tree | eb535e550fd3531aa7cfaf80d23b63fcc76a16d8 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) |
spi: Add APIs in spi core to set/get spi->chip_select and spi->cs_gpiod
Supporting multi-cs in spi core and spi controller 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 in spi core with the 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.
Suggested-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Amit Kumar Mahapatra <[email protected]>
Reviewed-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions