summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/tea6415c.c
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-15 18:15:28 +0200
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-05-20 09:03:40 +0200
commit2958d579ffb13571c9788d741e6115dc917b05a4 (patch)
tree205b163aa7749db693ce84b8f82134b909a3af5e /drivers/media/i2c/tea6415c.c
parent5d579ece43f4ed2d88bd5e14d6de682dbc532954 (diff)
downloadlinux-next-2958d579ffb13571c9788d741e6115dc917b05a4.tar.gz
linux-next-2958d579ffb13571c9788d741e6115dc917b05a4.zip
media: Use named initializers for arrays of i2c_device_data
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. The mentioned robustness is relevant for a planned change to struct i2c_device_id that replaces .driver_data by an anonymous union. While touching all these arrays, unify usage of whitespace and commas. This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'drivers/media/i2c/tea6415c.c')
-rw-r--r--drivers/media/i2c/tea6415c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tea6415c.c b/drivers/media/i2c/tea6415c.c
index 0cd2e6c52e20..ea7730a7ee2c 100644
--- a/drivers/media/i2c/tea6415c.c
+++ b/drivers/media/i2c/tea6415c.c
@@ -141,7 +141,7 @@ static void tea6415c_remove(struct i2c_client *client)
}
static const struct i2c_device_id tea6415c_id[] = {
- { "tea6415c" },
+ { .name = "tea6415c" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tea6415c_id);