Skip to content

Commit da542ca

Browse files
linuswpavelmachek
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent ea1a6a1 commit da542ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-lp3952.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include <linux/delay.h>
10-
#include <linux/gpio.h>
10+
#include <linux/gpio/consumer.h>
1111
#include <linux/i2c.h>
1212
#include <linux/io.h>
1313
#include <linux/kernel.h>

0 commit comments

Comments
 (0)