regulator: 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@pengutronix.de>
Link: https://msgid.link/r/20240513080525.2353168-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Uwe Kleine-König 2024-05-13 10:05:26 +02:00 committed by Mark Brown
parent 1613e604df
commit aea07a986c
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
18 changed files with 38 additions and 38 deletions

View File

@ -202,8 +202,8 @@ static int da9210_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id da9210_i2c_id[] = {
{"da9210", 0},
{},
{ "da9210" },
{}
};
MODULE_DEVICE_TABLE(i2c, da9210_i2c_id);

View File

@ -439,7 +439,7 @@ static int lp3971_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id lp3971_i2c_id[] = {
{ "lp3971", 0 },
{ "lp3971" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp3971_i2c_id);

View File

@ -537,7 +537,7 @@ static int lp3972_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id lp3972_i2c_id[] = {
{ "lp3972", 0 },
{ "lp3972" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lp3972_i2c_id);

View File

@ -430,7 +430,7 @@ static void lp8755_remove(struct i2c_client *client)
}
static const struct i2c_device_id lp8755_id[] = {
{LP8755_NAME, 0},
{ LP8755_NAME },
{}
};

View File

@ -276,7 +276,7 @@ static int max1586_pmic_probe(struct i2c_client *client)
}
static const struct i2c_device_id max1586_id[] = {
{ "max1586", 0 },
{ "max1586" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max1586_id);

View File

@ -145,8 +145,8 @@ static const struct of_device_id of_max20411_match_tbl[] = {
MODULE_DEVICE_TABLE(of, of_max20411_match_tbl);
static const struct i2c_device_id max20411_id[] = {
{ "max20411", 0 },
{ },
{ "max20411" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max20411_id);

View File

@ -240,7 +240,7 @@ static int max8649_regulator_probe(struct i2c_client *client)
}
static const struct i2c_device_id max8649_id[] = {
{ "max8649", 0 },
{ "max8649" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max8649_id);

View File

@ -162,8 +162,8 @@ MODULE_DEVICE_TABLE(of, max8893_dt_match);
#endif
static const struct i2c_device_id max8893_ids[] = {
{ "max8893", 0 },
{ },
{ "max8893" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max8893_ids);

View File

@ -307,8 +307,8 @@ static int max8952_pmic_probe(struct i2c_client *client)
}
static const struct i2c_device_id max8952_ids[] = {
{ "max8952", 0 },
{ },
{ "max8952" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max8952_ids);

View File

@ -577,7 +577,7 @@ static const struct dev_pm_ops mcp16502_pm_ops = {
};
#endif
static const struct i2c_device_id mcp16502_i2c_id[] = {
{ "mcp16502", 0 },
{ "mcp16502" },
{ }
};
MODULE_DEVICE_TABLE(i2c, mcp16502_i2c_id);

View File

@ -133,8 +133,8 @@ static int mt6311_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id mt6311_i2c_id[] = {
{"mt6311", 0},
{},
{ "mt6311" },
{}
};
MODULE_DEVICE_TABLE(i2c, mt6311_i2c_id);

View File

@ -596,10 +596,10 @@ static const struct of_device_id pf8x00_dt_ids[] = {
MODULE_DEVICE_TABLE(of, pf8x00_dt_ids);
static const struct i2c_device_id pf8x00_i2c_id[] = {
{ "pf8100", 0 },
{ "pf8121a", 0 },
{ "pf8200", 0 },
{},
{ "pf8100" },
{ "pf8121a" },
{ "pf8200" },
{}
};
MODULE_DEVICE_TABLE(i2c, pf8x00_i2c_id);

View File

@ -360,8 +360,8 @@ static int pv88060_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id pv88060_i2c_id[] = {
{"pv88060", 0},
{},
{ "pv88060" },
{}
};
MODULE_DEVICE_TABLE(i2c, pv88060_i2c_id);

View File

@ -381,8 +381,8 @@ static int pv88090_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id pv88090_i2c_id[] = {
{"pv88090", 0},
{},
{ "pv88090" },
{}
};
MODULE_DEVICE_TABLE(i2c, pv88090_i2c_id);

View File

@ -497,8 +497,8 @@ static int slg51000_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id slg51000_i2c_id[] = {
{"slg51000", 0},
{},
{ "slg51000" },
{}
};
MODULE_DEVICE_TABLE(i2c, slg51000_i2c_id);

View File

@ -130,8 +130,8 @@ static const struct of_device_id sy8106a_i2c_of_match[] = {
MODULE_DEVICE_TABLE(of, sy8106a_i2c_of_match);
static const struct i2c_device_id sy8106a_i2c_id[] = {
{ "sy8106a", 0 },
{ },
{ "sy8106a" },
{ }
};
MODULE_DEVICE_TABLE(i2c, sy8106a_i2c_id);

View File

@ -136,11 +136,11 @@ static int tps6286x_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id tps6286x_i2c_id[] = {
{ "tps62864", 0 },
{ "tps62866", 0 },
{ "tps62868", 0 },
{ "tps62869", 0 },
{},
{ "tps62864" },
{ "tps62866" },
{ "tps62868" },
{ "tps62869" },
{}
};
MODULE_DEVICE_TABLE(i2c, tps6286x_i2c_id);

View File

@ -165,11 +165,11 @@ static const struct of_device_id tps6287x_dt_ids[] = {
MODULE_DEVICE_TABLE(of, tps6287x_dt_ids);
static const struct i2c_device_id tps6287x_i2c_id[] = {
{ "tps62870", 0 },
{ "tps62871", 0 },
{ "tps62872", 0 },
{ "tps62873", 0 },
{},
{ "tps62870" },
{ "tps62871" },
{ "tps62872" },
{ "tps62873" },
{}
};
MODULE_DEVICE_TABLE(i2c, tps6287x_i2c_id);