diff mbox series

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

Message ID 20240910010133.44579-1-yang.lee@linux.alibaba.com (mailing list archive)
State Mainlined
Commit 1ec46bf0e48a46e181f5c8efb4732127e2fddeee
Headers show
Series [-next] Input: matrix_keypad: Remove duplicated include in matrix_keypad.c | expand

Commit Message

Yang Li Sept. 10, 2024, 1:01 a.m. UTC
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(-)

Comments

Dmitry Torokhov Oct. 4, 2024, 11:16 a.m. UTC | #1
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.
diff mbox series

Patch

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>