linux-sg2042/Documentation/gpio
Mika Westerberg 2956b5d94a pinctrl / gpio: Introduce .set_config() callback for GPIO chips
Currently we already have two pin configuration related callbacks
available for GPIO chips .set_single_ended() and .set_debounce(). In
future we expect to have even more, which does not scale well if we need
to add yet another callback to the GPIO chip structure for each possible
configuration parameter.

Better solution is to reuse what we already have available in the
generic pinconf.

To support this, we introduce a new .set_config() callback for GPIO
chips. The callback takes a single packed pin configuration value as
parameter. This can then be extended easily beyond what is currently
supported by just adding new types to the generic pinconf enum.

If the GPIO driver is backed up by a pinctrl driver the GPIO driver can
just assign gpiochip_generic_config() (introduced in this patch) to
.set_config and that will take care configuration requests are directed
to the pinctrl driver.

We then convert the existing drivers over .set_config() and finally
remove the .set_single_ended() and .set_debounce() callbacks.

Suggested-by: Linus Walleij <linus.walleij@linaro.org>
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>
2017-01-26 15:27:37 +01:00
..
00-INDEX gpio: document interaction with other subsystems 2015-07-21 11:39:32 +02:00
board.txt gpio/board.txt: point to gpiod_set_value 2016-10-20 14:14:11 +02:00
consumer.txt Doc: gpio: Fix typos in Documentation/gpio 2015-11-20 16:51:16 -07:00
driver.txt pinctrl / gpio: Introduce .set_config() callback for GPIO chips 2017-01-26 15:27:37 +01:00
drivers-on-gpio.txt gpio: Fix paths to GPIO driver source files 2016-06-13 09:30:31 +02:00
gpio-legacy.txt gpio: delete ARCH_[WANTS_OPTIONAL|REQUIRE]_GPIOLIB 2016-08-08 09:50:00 +02:00
gpio.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
sysfs.txt Typo correction for description in gpio document. 2015-10-11 15:39:01 -06:00