gpio: stp-xway: Implement get callback
authorMathias Kresin <dev@kresin.me>
Thu, 28 Jun 2018 19:57:40 +0000 (21:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Jul 2018 14:00:49 +0000 (16:00 +0200)
commit5b9b2b5284f81941972105b13337c58489ea8fca
treeba66a03aaf0b22010e4f12ad29ea6a552c32b136
parentbac5c3b829c3f2944d258dad1adec444b9deb338
gpio: stp-xway: Implement get callback

Add an implementation to get the current GPIO state.

The callback is used by the leds-gpio driver for example, in case the
current LED/GPIO state should be kept during driver load.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stp-xway.c