leds: lp3952: Include the right header
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Apr 2020 12:35:08 +0000 (14:35 +0200)
committerPavel Machek <pavel@ucw.cz>
Fri, 17 Apr 2020 12:49:22 +0000 (14:49 +0200)
This driver is using the GPIO descriptor API properly
as it should be but is including the legacy GPIO header
<linux/gpio.h>. Fix it by including <linux/gpio/consumer.h>
instead.

Cc: Tony Makkiel <tony.makkiel@daqri.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lp3952.c

index 4e4e542..6ee9131 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include <linux/delay.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/io.h>
 #include <linux/kernel.h>