Input: chipone_icn8505 - remove an unused field in struct icn8505_data
PATCH 1/1 Input: chipone_icn8505 - remove an unused field in struct icn8505_data
In "struct icn8505_data", the 'wake_gpio' field is unused. There is also nothing about gpio neither in this driver nor in the data-sheet.
So, remove it.
Found with cppcheck, unusedStructMember.
---
Compile tested only.
It was added in the initial commit e7330fa032bb ("Input: add support for ChipOne icn8505 based touchscreens") but was never used.
--- drivers/input/touchscreen/chipone_icn8505.c | 1 - 1 file changed, 1 deletion(-)
drivers/input/touchscreen/chipone_icn8505.c +0 -1
@@ -68,7 +68,6 @@ struct icn8505_touch_data {struct icn8505_data {struct i2c_client *client;struct input_dev *input; -struct gpio_desc *wake_gpio;struct touchscreen_properties prop;char firmware_name[32 ]; };
Signature · 1 line
2.45.0
Hi,
Quoted 9 lines · Christophe JAILLET
In "struct
icn8505_data", the 'wake_gpio' field is unused. There is also nothing about gpio neither in this driver nor in the data-sheet.So, remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by Christophe JAILLET <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 21 lines
---
Compile tested only.It was added in the initial commit
e7330fa032bb("Input: add support for ChipOne icn8505 based touchscreens") but was never used.--- drivers/input/touchscreen/chipone_icn8505.c | 1 - 1 file changed, 1 deletion(-)drivers/input/touchscreen/chipone_icn8505.c +0
-1@@ -68,7 +68,6 @@ struct icn8505_touch_data {struct icn8505_data {struct i2c_client *client;struct input_dev *input; -struct gpio_desc *wake_gpio;struct touchscreen_properties prop;char firmware_name[32 ]; };
Quoted 9 lines · Christophe JAILLET
In "struct
icn8505_data", the 'wake_gpio' field is unused. There is also nothing about gpio neither in this driver nor in the data-sheet.So, remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by Christophe JAILLET <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry