diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2017-01-23 13:34:33 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-01-26 15:23:01 +0100 |
commit | 15381bc7c7f52d56f87c56dd7c948ad78704b852 (patch) | |
tree | 5c01f17ccd72d81802efdaf5da1751ee98d5f1ac /drivers/gpio/gpio-wm8994.c | |
parent | pinctrl: Widen the generic pinconf argument from 16 to 24 bits (diff) | |
download | linux-15381bc7c7f52d56f87c56dd7c948ad78704b852.tar.xz linux-15381bc7c7f52d56f87c56dd7c948ad78704b852.zip |
pinctrl: Allow configuration of pins from gpiolib based drivers
When a GPIO driver is backed by a pinctrl driver the GPIO driver
sometimes needs to call the pinctrl driver to configure certain things,
like whether the pin is used as input or output. In addition to this
there are other configurations applicable to GPIOs such as setting
debounce time of the GPIO.
To support this we introduce a new function pinctrl_gpio_set_config()
that can be used by gpiolib based driver to pass configuration requests
to the backing pinctrl driver.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-wm8994.c')
0 files changed, 0 insertions, 0 deletions