spi: s3c24xx: Convert to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 19 Jan 2022 00:09:14 +0000 (01:09 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 13:37:34 +0000 (13:37 +0000)
commit7f2a3cf4e6077a1525092f114be7819e505773a1
tree7ac6bbc2fb59e3872da1771bb5b723c175df1e45
parenta45cf3cc72dd9cfde9db8af32cdf9c431f53f9bc
spi: s3c24xx: Convert to GPIO descriptors

This driver has a bunch of custom oldstyle GPIO number-passing
fields and a custom set-up callback.

The good thing is: nothing in the kernel is using it.

Convert the driver to use GPIO descriptors with a SPI_MASTER_GPIO_SS
flag so that the local CS callback also get invoked as the hardware
needs this.

New users of this driver can provide GPIO descriptor tables like
the other converted drivers.

Cc: linux-samsung-soc@vger.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Sylwester Nawrocki <snawrocki@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220119000914.192553-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c24xx.c
include/linux/spi/s3c24xx.h