leds: pca955x: Include the right GPIO header

Message ID 20200626224735.384181-1-linus.walleij@linaro.org
State New
Headers show
Series
  • leds: pca955x: Include the right GPIO header
Related show

Commit Message

Linus Walleij June 26, 2020, 10:47 p.m.
This driver provides a GPIO chip, so include <linux/gpio/driver.h>
and not the legacy <linux/gpio.h> header.

Cc: Andrew Jeffery <andrew@aj.id.au>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Matt Spinler <mspinler@linux.vnet.ibm.com>
Cc: C├ędric Le Goater <clg@kaod.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/leds/leds-pca955x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.4

Comments

Pavel Machek July 12, 2020, 7:53 a.m. | #1
On Sat 2020-06-27 00:47:35, Linus Walleij wrote:
> This driver provides a GPIO chip, so include <linux/gpio/driver.h>

> and not the legacy <linux/gpio.h> header.


Thanks, applied to for-next.
							Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Patch

diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c
index 4037c504589c..131f8e922ade 100644
--- a/drivers/leds/leds-pca955x.c
+++ b/drivers/leds/leds-pca955x.c
@@ -40,7 +40,7 @@ 
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/err.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/i2c.h>
 #include <linux/leds.h>
 #include <linux/module.h>