]> git.baikalelectronics.ru Git - kernel.git/commit
spi: oc-tiny: Use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Dec 2019 09:24:11 +0000 (10:24 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 27 Dec 2019 01:08:11 +0000 (01:08 +0000)
commite95c8b5a55bfb110d2a0ab8793cdb0c14fee7d37
tree3c551c002e6f4b604cfdf645e999954cea93b227
parentad7f7899a9e884460ec53c10a0d34943d93d051a
spi: oc-tiny: Use GPIO descriptors

Switch the OC Tiny driver over to handling CS GPIOs using
GPIO descriptors in the core.

This driver is entirely relying on GPIOs to be used for
chipselect, so let the core pick these out using either
device tree or machine descriptors.

There are no in-tree users of this driver so no board files
need to be patched, out-of-tree boardfiles can use machine
descriptor tables, c.f. commit 174f55c4c3dd.

Cc: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191205092411.64341-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-oc-tiny.c
include/linux/spi/spi_oc_tiny.h