Skip to contentSkip to conversation

Input: tca6416 remove unused struct 'tca6416_drv_data'

PATCH In review [email protected] 1 participant 2 messages May 23, 2024 – May 24, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: tca6416 remove unused struct 'tca6416_drv_data'

From: "Dr. David Alan Gilbert" <[email protected]>

'tca6416_drv_data' is unused since the original
commit 30ba3ead0576 ("Input: add keypad driver for keys interfaced to TCA6416").
Remove it.

---
 drivers/input/keyboard/tca6416-keypad.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/input/keyboard/tca6416-keypad.c +0 -5
index 677bc4baa5d1..b2060229bd0f 100644
@@ -32,11 +32,6 @@ static const struct i2c_device_id tca6416_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, tca6416_id);
 
-struct tca6416_drv_data {
-	struct input_dev *input;
-	struct tca6416_button data[];
-};
-
 struct tca6416_keypad_chip {
 	uint16_t reg_output;
 	uint16_t reg_direction;
Signature · 1 line
2.45.1
#1 lore raw
Quoted 8 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'tca6416_drv_data' is unused since the original
commit 30ba3ead0576 ("Input: add keypad driver for keys interfaced to TCA6416").
Remove it.

Oops, looks like Christophe got there first!

Dave

Quoted 23 lines
---
 drivers/input/keyboard/tca6416-keypad.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/input/keyboard/tca6416-keypad.c +0 -5
index 677bc4baa5d1..b2060229bd0f 100644
@@ -32,11 +32,6 @@ static const struct i2c_device_id tca6416_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, tca6416_id);
 
-struct tca6416_drv_data {
-	struct input_dev *input;
-	struct tca6416_button data[];
-};
-
 struct tca6416_keypad_chip {
 	uint16_t reg_output;
 	uint16_t reg_direction;
Signature · 1 line
2.45.1
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/