pinctrl: meson: implement the gpio_chip get_direction callback
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Apr 2020 18:33:48 +0000 (20:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Apr 2020 10:00:46 +0000 (12:00 +0200)
commitef1d0bce38cf1b4293afe6088dbe9524bc5d434f
tree4260ecebe8de77d3e5f5ffef5cb36640198bca2c
parent4e3ec9e407ad5058003309072b37111f7b8c900a
pinctrl: meson: implement the gpio_chip get_direction callback

Implement the get_direction callback so we read the direction from the
actual GPIO controller register. This is recommended by the gpio_chip
kernel doc.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20200417183349.1283092-2-martin.blumenstingl@googlemail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/meson/pinctrl-meson.c