OSDN Git Service

gpio: tb10x: Use GENERIC_GPIO
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Aug 2018 14:59:42 +0000 (16:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 06:53:37 +0000 (08:53 +0200)
commit0d1e31abcaf5a3f5ebff81fa0c1322c2b17e59dd
tree78e058d09017133c86b2426a7c19fd015f00c066
parentd28af35b0c91eea1030c5fef1f8c0f21b97a7e03
gpio: tb10x: Use GENERIC_GPIO

Instead of open coding logic for reading and writing GPIO lines,
use the generic GPIO library. Also switch to using the spinlock
from the generic GPIO to protect the registers.

Cc: linux-snps-arc@lists.infradead.org
Acked-by: Christian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-tb10x.c