diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-05-08 15:20:42 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-08-09 07:56:37 +0200 |
commit | cc4cbd4b4f97a968203530ef73598ad2eaf70dee (patch) | |
tree | 974f2ffcb1698fe3afe53026e9602e8b9d337eb6 /drivers/media/i2c/ths8200.c | |
parent | media: platform: allegro-dvt: Constify struct regmap_config (diff) | |
download | linux-cc4cbd4b4f97a968203530ef73598ad2eaf70dee.tar.xz linux-cc4cbd4b4f97a968203530ef73598ad2eaf70dee.zip |
media: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.
This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.
While add it, also remove commas after the sentinel entries.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/ths8200.c')
-rw-r--r-- | drivers/media/i2c/ths8200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index ce0a7f809f19..686f10641c7a 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -487,8 +487,8 @@ static void ths8200_remove(struct i2c_client *client) } static const struct i2c_device_id ths8200_id[] = { - { "ths8200", 0 }, - {}, + { "ths8200" }, + {} }; MODULE_DEVICE_TABLE(i2c, ths8200_id); |