diff options
| author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-12-02 12:36:41 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-12-02 17:58:37 +0000 |
| commit | 8359ea9c119570fb5971379655661f77a3aafb1d (patch) | |
| tree | e0cd353e45357d74871eb9193a06cf5fddc2f2e3 /sound/soc/codecs/ntp8918.c | |
| parent | 3787255c967ba64dc72adc3038f0cb81211bd297 (diff) | |
ASoC: 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.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20241202113641.1003836-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ntp8918.c')
| -rw-r--r-- | sound/soc/codecs/ntp8918.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ntp8918.c b/sound/soc/codecs/ntp8918.c index 0493ab6acbe4..a332893fc51d 100644 --- a/sound/soc/codecs/ntp8918.c +++ b/sound/soc/codecs/ntp8918.c @@ -371,7 +371,7 @@ static int ntp8918_i2c_probe(struct i2c_client *i2c) } static const struct i2c_device_id ntp8918_i2c_id[] = { - { "ntp8918", 0 }, + { "ntp8918" }, {} }; MODULE_DEVICE_TABLE(i2c, ntp8918_i2c_id); |
