gpiolib: remove legacy gpio_export()
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Feb 2023 14:29:45 +0000 (16:29 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Mar 2023 10:33:01 +0000 (12:33 +0200)
commitd74e316633e49f44756c23997fa071979a939405
treee0e465bb5ad25bfeee3dff9a51ef3d6e63735e0e
parent0e685c3e7158d35626d6d76b9f859eae806d87fa
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>
Documentation/admin-guide/gpio/sysfs.rst
Documentation/driver-api/gpio/legacy.rst
Documentation/translations/zh_CN/driver-api/gpio/legacy.rst
Documentation/translations/zh_TW/gpio.txt
arch/arm/mach-omap2/pdata-quirks.c
arch/sh/boards/mach-ap325rxa/setup.c
drivers/gpio/gpiolib-sysfs.c
drivers/media/pci/sta2x11/sta2x11_vip.c
drivers/net/ieee802154/ca8210.c
include/linux/gpio.h