[PATCH -next] Input: matrix_keypad: Remove duplicated include in matrix_keypad.c

Yang Li posted 1 patch 2 months, 3 weeks ago
drivers/input/keyboard/matrix_keypad.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] Input: matrix_keypad: Remove duplicated include in matrix_keypad.c
Posted by Yang Li 2 months, 3 weeks ago
The header files consumer.h is included twice in matrix_keypad.c,
so one inclusion of each can be removed.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=10823
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/input/keyboard/matrix_keypad.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c
index 3c38bae576ed..4cfdac922022 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -17,7 +17,6 @@
 #include <linux/jiffies.h>
 #include <linux/module.h>
 #include <linux/gpio.h>
-#include <linux/gpio/consumer.h>
 #include <linux/input/matrix_keypad.h>
 #include <linux/slab.h>
 #include <linux/of.h>
-- 
2.32.0.3.g01195cf9f
Re: [PATCH -next] Input: matrix_keypad: Remove duplicated include in matrix_keypad.c
Posted by Dmitry Torokhov 1 month, 3 weeks ago
On Tue, Sep 10, 2024 at 09:01:33AM +0800, Yang Li wrote:
> The header files consumer.h is included twice in matrix_keypad.c,
> so one inclusion of each can be removed.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=10823
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>

Applied, thank you.

-- 
Dmitry