Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: 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/20240624131728.1244053-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
6f9faf14 15c99e7f

+9 -6
+1 -1
sound/soc/codecs/aw87390.c
··· 445 445 } 446 446 447 447 static const struct i2c_device_id aw87390_i2c_id[] = { 448 - { AW87390_I2C_NAME, 0 }, 448 + { AW87390_I2C_NAME }, 449 449 { } 450 450 }; 451 451 MODULE_DEVICE_TABLE(i2c, aw87390_i2c_id);
+1 -1
sound/soc/codecs/aw88261.c
··· 1266 1266 } 1267 1267 1268 1268 static const struct i2c_device_id aw88261_i2c_id[] = { 1269 - { AW88261_I2C_NAME, 0 }, 1269 + { AW88261_I2C_NAME }, 1270 1270 { } 1271 1271 }; 1272 1272 MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);
+1 -1
sound/soc/codecs/aw88395/aw88395.c
··· 560 560 } 561 561 562 562 static const struct i2c_device_id aw88395_i2c_id[] = { 563 - { AW88395_I2C_NAME, 0 }, 563 + { AW88395_I2C_NAME }, 564 564 { } 565 565 }; 566 566 MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id);
+1 -1
sound/soc/codecs/aw88399.c
··· 1892 1892 } 1893 1893 1894 1894 static const struct i2c_device_id aw88399_i2c_id[] = { 1895 - { AW88399_I2C_NAME, 0 }, 1895 + { AW88399_I2C_NAME }, 1896 1896 { } 1897 1897 }; 1898 1898 MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id);
+4 -1
sound/soc/codecs/es8311.c
··· 943 943 &es8311_dai, 1); 944 944 } 945 945 946 - static const struct i2c_device_id es8311_id[] = { { "es8311", 0 }, {} }; 946 + static const struct i2c_device_id es8311_id[] = { 947 + { "es8311" }, 948 + { } 949 + }; 947 950 MODULE_DEVICE_TABLE(i2c, es8311_id); 948 951 949 952 static const struct of_device_id es8311_of_match[] = {
+1 -1
sound/soc/codecs/rt1318.c
··· 1141 1141 }; 1142 1142 1143 1143 static const struct i2c_device_id rt1318_i2c_id[] = { 1144 - { "rt1318", 0 }, 1144 + { "rt1318" }, 1145 1145 { } 1146 1146 }; 1147 1147 MODULE_DEVICE_TABLE(i2c, rt1318_i2c_id);