diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-01-13 10:51:34 +0100 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-06 11:33:00 +0100 |
commit | d1143d50073cff1f6dcd4bf62a8eb3852770ae4d (patch) | |
tree | 7e95e877696a8dc8369455732c422d6387d83f85 /arch/arm/plat-orion/gpio.c | |
parent | Linux 6.3-rc1 (diff) | |
download | linux-d1143d50073cff1f6dcd4bf62a8eb3852770ae4d.tar.xz linux-d1143d50073cff1f6dcd4bf62a8eb3852770ae4d.zip |
ARM: orion/gpio: Use the right include
This is a GPIO driver so include <linux/gpio/driver.h> and not
the legacy <linux/gpio.h> header. Switch a single call to the
legacy API and use <linux/gpio/consumer.h> as well.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/plat-orion/gpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index 3ef9ecdd6343..595e9cb33c1d 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c @@ -18,7 +18,8 @@ #include <linux/spinlock.h> #include <linux/bitops.h> #include <linux/io.h> -#include <linux/gpio.h> +#include <linux/gpio/driver.h> +#include <linux/gpio/consumer.h> #include <linux/leds.h> #include <linux/of.h> #include <linux/of_irq.h> @@ -312,7 +313,7 @@ int orion_gpio_led_blink_set(struct gpio_desc *desc, int state, case GPIO_LED_NO_BLINK_LOW: case GPIO_LED_NO_BLINK_HIGH: orion_gpio_set_blink(gpio, 0); - gpio_set_value(gpio, state); + gpiod_set_raw_value(desc, state); break; case GPIO_LED_BLINK: orion_gpio_set_blink(gpio, 1); |