]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 2 Dec 2024 11:36:41 +0000 (12:36 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Dec 2024 17:58:37 +0000 (17:58 +0000)
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>
sound/soc/codecs/cs42l84.c
sound/soc/codecs/es8323.c
sound/soc/codecs/ntp8835.c
sound/soc/codecs/ntp8918.c
sound/soc/codecs/sma1307.c
sound/soc/codecs/uda1342.c

index 17d5c96e334d0b45052723f8c28f46118f917dba..88cf3c03986e8e83830a15c2464962bab5a951b6 100644 (file)
@@ -1087,7 +1087,7 @@ static const struct of_device_id cs42l84_of_match[] = {
 MODULE_DEVICE_TABLE(of, cs42l84_of_match);
 
 static const struct i2c_device_id cs42l84_id[] = {
-       {"cs42l84", 0},
+       { "cs42l84" },
        {}
 };
 MODULE_DEVICE_TABLE(i2c, cs42l84_id);
index 6f4fa36ea34d6704b591a34df18e623982903256..a9822998199fb7a590d7ab1b9b112a0d4bbbfbb6 100644 (file)
@@ -758,7 +758,7 @@ static int es8323_i2c_probe(struct i2c_client *i2c_client)
 }
 
 static const struct i2c_device_id es8323_i2c_id[] = {
-       { "es8323", 0 },
+       { "es8323" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, es8323_i2c_id);
index 796e1410496f433ebfdd41b363f4ea6d28b49390..2cc4c6395f5587b593495d8569f1f1cfc5eb7609 100644 (file)
@@ -454,7 +454,7 @@ static int ntp8835_i2c_probe(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id ntp8835_i2c_id[] = {
-       { "ntp8835", 0 },
+       { "ntp8835" },
        {}
 };
 MODULE_DEVICE_TABLE(i2c, ntp8835_i2c_id);
index 0493ab6acbe4ecab23cf062333b42a95a6462562..a332893fc51db16086c416348a3e109da98cf1f9 100644 (file)
@@ -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);
index f2cea6186d98948852e36c401a0e55c0637d9867..480bcea48541e6b88f375b6fc5b04256a2f30bc1 100644 (file)
@@ -2011,8 +2011,8 @@ static void sma1307_i2c_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sma1307_i2c_id[] = {
-       { "sma1307a", 0 },
-       { "sma1307aq", 0 },
+       { "sma1307a" },
+       { "sma1307aq" },
        { }
 };
 
index 3d49a78699485101e403c6d15dfd5dc11c9a55b5..b0b29012842da01864f1dbb0e3674ea3aa4c17aa 100644 (file)
@@ -319,7 +319,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(uda1342_pm_ops,
                                 uda1342_suspend, uda1342_resume, NULL);
 
 static const struct i2c_device_id uda1342_i2c_id[] = {
-        { "uda1342", 0 },
+        { "uda1342" },
         { }
 };
 MODULE_DEVICE_TABLE(i2c, uda1342_i2c_id);