]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite789ced66dbeb0220cfd4bf27ac8be7dfbd3fbc7
tree78e058d09017133c86b2426a7c19fd015f00c066
parentcec13b087551a61dd5faa8053735cc46b92447cc
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