From: Christophe JAILLET Date: Sun, 12 May 2024 08:25:17 +0000 (+0200) Subject: Input: chipone_icn8505 - remove an unused field in struct icn8505_data X-Git-Tag: v6.10-rc1~22^2^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae7620b2839365e23a88dc2953e071ff2f260868;p=thirdparty%2Fkernel%2Flinux.git 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. Signed-off-by: Christophe JAILLET Reviewed-by: Hans de Goede Link: https://lore.kernel.org/r/37443a675ca07c91c5f0118ce255406e6e3c08f5.1715502304.git.christophe.jaillet@wanadoo.fr Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/chipone_icn8505.c b/drivers/input/touchscreen/chipone_icn8505.c index b56954830b339..c1b4fc28fa8d4 100644 --- a/drivers/input/touchscreen/chipone_icn8505.c +++ b/drivers/input/touchscreen/chipone_icn8505.c @@ -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]; };