Input: chipone_icn8505 - remove an unused field in struct icn8505_data
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 12 May 2024 08:25:17 +0000 (10:25 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 13 May 2024 21:09:57 +0000 (14:09 -0700)
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 <christophe.jaillet@wanadoo.fr>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/37443a675ca07c91c5f0118ce255406e6e3c08f5.1715502304.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/chipone_icn8505.c

index b569548..c1b4fc2 100644 (file)
@@ -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];
 };