diff mbox series

Input: adp5588-keys - Use the right header

Message ID 20210820222958.57238-1-linus.walleij@linaro.org (mailing list archive)
State Accepted
Commit 9d9bfd180c8e3748be1f1a8843b0b54ed0ef42c9
Headers show
Series Input: adp5588-keys - Use the right header | expand

Commit Message

Linus Walleij Aug. 20, 2021, 10:29 p.m. UTC
This keyboard driver is implementing a GPIO driver, so it need
to include <linux/gpio/driver.h> and not the legacy <linux/gpio.h>
header.

Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/input/keyboard/adp5588-keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Torokhov Aug. 30, 2021, 9:19 p.m. UTC | #1
On Sat, Aug 21, 2021 at 12:29:58AM +0200, Linus Walleij wrote:
> This keyboard driver is implementing a GPIO driver, so it need
> to include <linux/gpio/driver.h> and not the legacy <linux/gpio.h>
> header.
> 
> Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
> Cc: Michael Hennerich <michael.hennerich@analog.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index 90a59b973d00..1592da4de336 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -17,7 +17,7 @@ 
 #include <linux/platform_device.h>
 #include <linux/input.h>
 #include <linux/i2c.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/slab.h>
 
 #include <linux/platform_data/adp5588.h>