OSDN Git Service

pinctrl: meson: wire up the gpio_chip's set_config callback
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Apr 2020 18:33:49 +0000 (20:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Apr 2020 10:00:46 +0000 (12:00 +0200)
commitf8f0aa00898f3348fa323ae27d83463aace72394
treee3066018b1a324cd85619b96045c90fbfd0a8c96
parentef1d0bce38cf1b4293afe6088dbe9524bc5d434f
pinctrl: meson: wire up the gpio_chip's set_config callback

Use gpiochip_generic_config for the gpio_chip's set_config callback so
GPIO flags like GPIO_PULL_UP or GPIO_PULL_DOWN can be used in the board
.dts descriptions.
This is required for some Meson8m2 boards where GPIO_BSD_EN provides the
"MUTE" signal and requires enabling the internal pull-up resistor.

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