pinctrl: bcm: nsp: implement get_direction
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 4 Nov 2019 00:18:19 +0000 (13:18 +1300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Nov 2019 15:20:38 +0000 (16:20 +0100)
commit574dce894bbe97bffb9bffb14973ed3d44e446fc
tree05b87896815545e0b50e45273db5299f88191e50
parent8298d18a49a3e9e2c0eceb88f2ed80e794f2fae2
pinctrl: bcm: nsp: implement get_direction

The get_direction api is strongly recommended to be implemented. In fact
if it is not implemented gpio-hogs will not get the correct direction.
Add an implementation of get_direction for the nsp-gpio driver.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20191104001819.2300-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c