Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Blumenstingl and committed by
Linus Walleij
f8f0aa00 ef1d0bce

+1
+1
drivers/pinctrl/meson/pinctrl-meson.c
··· 603 603 pc->chip.parent = pc->dev; 604 604 pc->chip.request = gpiochip_generic_request; 605 605 pc->chip.free = gpiochip_generic_free; 606 + pc->chip.set_config = gpiochip_generic_config; 606 607 pc->chip.get_direction = meson_gpio_get_direction; 607 608 pc->chip.direction_input = meson_gpio_direction_input; 608 609 pc->chip.direction_output = meson_gpio_direction_output;