]> Git Repo - linux.git/commitdiff
leds: lgm: Fix up includes
authorLinus Walleij <[email protected]>
Sun, 13 Jun 2021 23:16:47 +0000 (01:16 +0200)
committerPavel Machek <[email protected]>
Wed, 23 Jun 2021 22:55:41 +0000 (00:55 +0200)
This driver is including the legacy GPIO header <linux/gpio.h>
but the only thing it is using from that header is the wrong
define for GPIOF_DIR_OUT.

Fix it up by using GPIO_LINE_DIRECTION_OUT and including the
correct consumer and driver headers.

Cc: Amireddy Mallikarjuna reddy <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
drivers/leds/blink/leds-lgm-sso.c

index 885e1277cbbd7256bcc763fc662a8c9ca94f1127..7eb2f44f16be598a471fdfe433d5a579651d75a9 100644 (file)
@@ -7,7 +7,8 @@
 
 #include <linux/bitfield.h>
 #include <linux/clk.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
+#include <linux/gpio/driver.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
@@ -422,7 +423,7 @@ static void sso_gpio_free(struct gpio_chip *chip, unsigned int offset)
 
 static int sso_gpio_get_dir(struct gpio_chip *chip, unsigned int offset)
 {
-       return GPIOF_DIR_OUT;
+       return GPIO_LINE_DIRECTION_OUT;
 }
 
 static int
This page took 0.058175 seconds and 4 git commands to generate.