summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lp3952.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-04-15 14:35:08 +0200
committerPavel Machek <pavel@ucw.cz>2020-04-17 14:49:22 +0200
commitda542caf1ff78bd10847b38cfd89bd6e1a6355fc (patch)
treeae96c163a2f05686228a8a298f323144ba4ac5e7 /drivers/leds/leds-lp3952.c
parentleds: lm355x: Drop surplus include (diff)
downloadlinux-da542caf1ff78bd10847b38cfd89bd6e1a6355fc.tar.xz
linux-da542caf1ff78bd10847b38cfd89bd6e1a6355fc.zip
leds: lp3952: Include the right header
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>
Diffstat (limited to 'drivers/leds/leds-lp3952.c')
-rw-r--r--drivers/leds/leds-lp3952.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp3952.c b/drivers/leds/leds-lp3952.c
index 4e4e542774cb..6ee9131fbf25 100644
--- a/drivers/leds/leds-lp3952.c
+++ b/drivers/leds/leds-lp3952.c
@@ -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>