diff options
| author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-06-24 14:51:01 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-03 16:41:00 +0200 |
| commit | b45c696c27d6a93917f980a55eaf96a4d08f0e0d (patch) | |
| tree | cf93fc95462c4a8e56060f6c3e1c128e34096f5e /drivers/misc/ds1682.c | |
| parent | 822d7335f2a65fe60789e648f5ee3653ad3dd245 (diff) | |
| download | linux-next-b45c696c27d6a93917f980a55eaf96a4d08f0e0d.tar.gz linux-next-b45c696c27d6a93917f980a55eaf96a4d08f0e0d.zip | |
misc: 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@baylibre.com>
Link: https://lore.kernel.org/r/20240624125101.1242750-2-u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ds1682.c')
| -rw-r--r-- | drivers/misc/ds1682.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ds1682.c b/drivers/misc/ds1682.c index 5f8dcd0e3848..4175df7ef011 100644 --- a/drivers/misc/ds1682.c +++ b/drivers/misc/ds1682.c @@ -271,7 +271,7 @@ static void ds1682_remove(struct i2c_client *client) } static const struct i2c_device_id ds1682_id[] = { - { "ds1682", 0 }, + { "ds1682" }, { } }; MODULE_DEVICE_TABLE(i2c, ds1682_id); |
