Commit 6f9faf14 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

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: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20240624131728.1244053-2-u.kleine-koenig@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 15c99e7f
...@@ -445,7 +445,7 @@ static int aw87390_i2c_probe(struct i2c_client *i2c) ...@@ -445,7 +445,7 @@ static int aw87390_i2c_probe(struct i2c_client *i2c)
} }
static const struct i2c_device_id aw87390_i2c_id[] = { static const struct i2c_device_id aw87390_i2c_id[] = {
{ AW87390_I2C_NAME, 0 }, { AW87390_I2C_NAME },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, aw87390_i2c_id); MODULE_DEVICE_TABLE(i2c, aw87390_i2c_id);
......
...@@ -1266,7 +1266,7 @@ static int aw88261_i2c_probe(struct i2c_client *i2c) ...@@ -1266,7 +1266,7 @@ static int aw88261_i2c_probe(struct i2c_client *i2c)
} }
static const struct i2c_device_id aw88261_i2c_id[] = { static const struct i2c_device_id aw88261_i2c_id[] = {
{ AW88261_I2C_NAME, 0 }, { AW88261_I2C_NAME },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id); MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);
......
...@@ -560,7 +560,7 @@ static int aw88395_i2c_probe(struct i2c_client *i2c) ...@@ -560,7 +560,7 @@ static int aw88395_i2c_probe(struct i2c_client *i2c)
} }
static const struct i2c_device_id aw88395_i2c_id[] = { static const struct i2c_device_id aw88395_i2c_id[] = {
{ AW88395_I2C_NAME, 0 }, { AW88395_I2C_NAME },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id); MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id);
......
...@@ -1892,7 +1892,7 @@ static int aw88399_i2c_probe(struct i2c_client *i2c) ...@@ -1892,7 +1892,7 @@ static int aw88399_i2c_probe(struct i2c_client *i2c)
} }
static const struct i2c_device_id aw88399_i2c_id[] = { static const struct i2c_device_id aw88399_i2c_id[] = {
{ AW88399_I2C_NAME, 0 }, { AW88399_I2C_NAME },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id); MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id);
......
...@@ -943,7 +943,10 @@ static int es8311_i2c_probe(struct i2c_client *i2c_client) ...@@ -943,7 +943,10 @@ static int es8311_i2c_probe(struct i2c_client *i2c_client)
&es8311_dai, 1); &es8311_dai, 1);
} }
static const struct i2c_device_id es8311_id[] = { { "es8311", 0 }, {} }; static const struct i2c_device_id es8311_id[] = {
{ "es8311" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8311_id); MODULE_DEVICE_TABLE(i2c, es8311_id);
static const struct of_device_id es8311_of_match[] = { static const struct of_device_id es8311_of_match[] = {
......
...@@ -1141,7 +1141,7 @@ static const struct regmap_config rt1318_regmap = { ...@@ -1141,7 +1141,7 @@ static const struct regmap_config rt1318_regmap = {
}; };
static const struct i2c_device_id rt1318_i2c_id[] = { static const struct i2c_device_id rt1318_i2c_id[] = {
{ "rt1318", 0 }, { "rt1318" },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, rt1318_i2c_id); MODULE_DEVICE_TABLE(i2c, rt1318_i2c_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment