summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide/gpio
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-02-07 16:29:45 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-06 12:33:01 +0200
commitd74e316633e49f44756c23997fa071979a939405 (patch)
treee0e465bb5ad25bfeee3dff9a51ef3d6e63735e0e /Documentation/admin-guide/gpio
parent0e685c3e7158d35626d6d76b9f859eae806d87fa (diff)
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/gpio')
-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 */