]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07c82f64a787d30562413004f2e9b105d032bb1e
tree7ac6bbc2fb59e3872da1771bb5b723c175df1e45
parent19151cf8ca8ada30d8aca1fdb184942b7d5ffe49
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