aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ieee802154
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 /drivers/net/ieee802154
parentgpiolib: remove gpio_set_debounce() (diff)
downloadwireguard-linux-d74e316633e49f44756c23997fa071979a939405.tar.xz
wireguard-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 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/ca8210.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
index e1a569b99e4a..5c0be6a3ec5e 100644
--- a/drivers/net/ieee802154/ca8210.c
+++ b/drivers/net/ieee802154/ca8210.c
@@ -51,6 +51,7 @@
#include <linux/clk-provider.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
+#include <linux/gpio/consumer.h>
#include <linux/gpio.h>
#include <linux/ieee802154.h>
#include <linux/io.h>
@@ -2853,7 +2854,7 @@ static int ca8210_interrupt_init(struct spi_device *spi)
);
if (ret) {
dev_crit(&spi->dev, "request_irq %d failed\n", pdata->irq_id);
- gpio_unexport(pdata->gpio_irq);
+ gpiod_unexport(gpio_to_desc(pdata->gpio_irq));
gpio_free(pdata->gpio_irq);
}