Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Linus Walleij and committed by
Pavel Machek
da542caf ea1a6a15

+1 -1
+1 -1
drivers/leds/leds-lp3952.c
··· 7 7 */ 8 8 9 9 #include <linux/delay.h> 10 - #include <linux/gpio.h> 10 + #include <linux/gpio/consumer.h> 11 11 #include <linux/i2c.h> 12 12 #include <linux/io.h> 13 13 #include <linux/kernel.h>