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)
commitf03ee2042b2dc46e3452e87324d90f147de4a944
tree3c551c002e6f4b604cfdf645e999954cea93b227
parent28d1dddc59f6b7fc085093e7c1e978b33f0caf4c
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 1dfbf334f123.

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