spi: bcm2835: reduce the abuse of the GPIO API
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Sep 2023 16:15:53 +0000 (18:15 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 Sep 2023 12:05:30 +0000 (13:05 +0100)
commit21f252cd29f08892d48739fd7513ad79c1cff96a
treeafb3da87c85535e0f21d1ad2f18065b416240e5c
parent9386c958beb77aee0d95d5fd0c79babd06a86c7d
spi: bcm2835: reduce the abuse of the GPIO API

Currently the bcm2835 SPI driver uses functions that are available
exclusively to GPIO providers as a way to handle a platform quirk. Let's
use a slightly better alternative that avoids poking around in GPIOLIB's
internals and use GPIO lookup tables.

Link: https://www.spinics.net/lists/linux-gpio/msg36218.html
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230911161553.24313-1-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c