[PATCH v2 2/3] drm/sitronix/st7571-i2c: Drop unused assignment of i2c_device_id driver data
From: Uwe Kleine-König (The Capable Hub)
Date: Mon Jul 20 2026 - 07:44:44 EST
The driver explicitly set the .driver_data member of struct
i2c_device_id to zero without relying on that value. Drop this unused
assignment.
While touching this array use a named initializer for .name.
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/gpu/drm/sitronix/st7571-i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/sitronix/st7571-i2c.c b/drivers/gpu/drm/sitronix/st7571-i2c.c
index 44bc94be33d6..be6fbed8adaa 100644
--- a/drivers/gpu/drm/sitronix/st7571-i2c.c
+++ b/drivers/gpu/drm/sitronix/st7571-i2c.c
@@ -134,8 +134,8 @@ static const struct of_device_id st7571_of_match[] = {
MODULE_DEVICE_TABLE(of, st7571_of_match);
static const struct i2c_device_id st7571_id[] = {
- { "st7567", 0 },
- { "st7571", 0 },
+ { .name = "st7567" },
+ { .name = "st7571" },
{ }
};
MODULE_DEVICE_TABLE(i2c, st7571_id);
--
2.55.0.11.g153666a7d9bb