spi: pxa2xx: Provide num-cs for Sharp PDAs via device properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 17 Apr 2024 10:54:29 +0000 (13:54 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2024 02:11:32 +0000 (11:11 +0900)
commit11346db50616698b04da44a62d4fac17d9227a62
tree68d4b61fe84401f6871a8c8064562baa9ef9ff4a
parent2c547549ac69380bb03b495c5ef3dbc03c9c7a48
spi: pxa2xx: Provide num-cs for Sharp PDAs via device properties

Since driver can parse num-cs device property, replace platform data
with this new approach. This pursues the following objectives:

- getting rid of the public header that barely used outside of
  the SPI subsystem (more specifically the SPI PXA2xx drivers)

- making a trampoline for the driver to support non-default number
  of the chip select pins in case the original code is going to be
  converted to Device Tree model

It's not expected to have more users in board files except this one.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240417110334.2671228-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-pxa/spitz.c