]> git.itanic.dy.fi Git - linux-stable/commit
gpiolib: discourage gpiochip_add_pin[group]_range for DT pinctrls
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 21 May 2018 20:57:39 +0000 (22:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 May 2018 08:05:51 +0000 (10:05 +0200)
commit973c1714de308bb9424f0eb5aaab275d1641a720
treec152c1e2a1d5753ab1537246abbc68cda8c9792d
parenta86caa9ba5d70696ceb35d1d39caa20d8b641387
gpiolib: discourage gpiochip_add_pin[group]_range for DT pinctrls

This patch adds the stern warning to the kerneldoc text of both
gpiochip_add_pin[group]_range() functions in hope of detering
developers from ever using them in their DeviceTree-supported
pinctrl drivers in the future.

For anyone affected: Please refer to Section 2.1 of
Documentation/devicetree/bindings/gpio/gpio.txt on how to
bind pinctrl and gpio drivers via the "gpio-ranges" property.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c