summaryrefslogtreecommitdiffstats
path: root/Documentation/admin-guide
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-02-07 15:29:45 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-06 11:33:01 +0100
commitd74e316633e49f44756c23997fa071979a939405 (patch)
treee0e465bb5ad25bfeee3dff9a51ef3d6e63735e0e /Documentation/admin-guide
parentgpiolib: remove gpio_set_debounce() (diff)
downloadlinux-d74e316633e49f44756c23997fa071979a939405.tar.xz
linux-d74e316633e49f44756c23997fa071979a939405.zip
gpiolib: remove legacy gpio_export()
There are only a handful of users of gpio_export() and related functions. As these are just wrappers around the modern gpiod_export() helper, remove the wrappers and open-code the gpio_to_desc in all callers to shrink the legacy API. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'Documentation/admin-guide')
-rw-r--r--Documentation/admin-guide/gpio/sysfs.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/admin-guide/gpio/sysfs.rst b/Documentation/admin-guide/gpio/sysfs.rst
index ec09ffd983e7..35171d15f78d 100644
--- a/Documentation/admin-guide/gpio/sysfs.rst
+++ b/Documentation/admin-guide/gpio/sysfs.rst
@@ -145,7 +145,7 @@ requested using gpio_request()::
/* export the GPIO to userspace */
int gpiod_export(struct gpio_desc *desc, bool direction_may_change);
- /* reverse gpio_export() */
+ /* reverse gpiod_export() */
void gpiod_unexport(struct gpio_desc *desc);
/* create a sysfs link to an exported GPIO node */