]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: iqs5xx - drop unused i2c driver_data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Fri, 15 May 2026 16:51:34 +0000 (18:51 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 31 May 2026 05:11:56 +0000 (22:11 -0700)
The driver doesn't make use of the value that was explicitly assigned to
the .driver_data members. Drop the assignment. While touching the array,
convert it to use named initialization which is easier to understand.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260515165135.498505-2-u.kleine-koenig@baylibre.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c

index 587665e4e6fd4332fc6bbca534b41f27609be394..b9bbe8b3eab81ed624d5a670992fc50961428f63 100644 (file)
@@ -1049,9 +1049,9 @@ static int iqs5xx_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id iqs5xx_id[] = {
-       { "iqs550", 0 },
-       { "iqs572", 1 },
-       { "iqs525", 2 },
+       { .name = "iqs550" },
+       { .name = "iqs572" },
+       { .name = "iqs525" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, iqs5xx_id);