mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
media: 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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
343cb1ec7b
commit
cc4cbd4b4f
@@ -256,7 +256,7 @@ static void a8293_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id a8293_id_table[] = {
|
||||
{"a8293", 0},
|
||||
{ "a8293" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, a8293_id_table);
|
||||
|
||||
@@ -1553,7 +1553,7 @@ static void af9013_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id af9013_id_table[] = {
|
||||
{"af9013", 0},
|
||||
{ "af9013" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, af9013_id_table);
|
||||
|
||||
@@ -1173,7 +1173,7 @@ static void af9033_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id af9033_id_table[] = {
|
||||
{"af9033", 0},
|
||||
{ "af9033" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, af9033_id_table);
|
||||
|
||||
@@ -767,7 +767,7 @@ static void au8522_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id au8522_id[] = {
|
||||
{"au8522", 0},
|
||||
{ "au8522" },
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -672,7 +672,7 @@ static void cxd2099_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id cxd2099_id[] = {
|
||||
{"cxd2099", 0},
|
||||
{ "cxd2099" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, cxd2099_id);
|
||||
|
||||
@@ -723,7 +723,7 @@ static void cxd2820r_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id cxd2820r_id_table[] = {
|
||||
{"cxd2820r", 0},
|
||||
{ "cxd2820r" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, cxd2820r_id_table);
|
||||
|
||||
@@ -2244,7 +2244,7 @@ static void lgdt3306a_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lgdt3306a_id_table[] = {
|
||||
{"lgdt3306a", 0},
|
||||
{ "lgdt3306a" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, lgdt3306a_id_table);
|
||||
|
||||
@@ -983,7 +983,7 @@ static void lgdt330x_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lgdt330x_id_table[] = {
|
||||
{"lgdt330x", 0},
|
||||
{ "lgdt330x" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, lgdt330x_id_table);
|
||||
|
||||
@@ -708,7 +708,7 @@ static void mn88472_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mn88472_id_table[] = {
|
||||
{"mn88472", 0},
|
||||
{ "mn88472" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mn88472_id_table);
|
||||
|
||||
@@ -743,7 +743,7 @@ static void mn88473_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mn88473_id_table[] = {
|
||||
{"mn88473", 0},
|
||||
{ "mn88473" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mn88473_id_table);
|
||||
|
||||
@@ -1346,7 +1346,7 @@ static void mxl692_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mxl692_id_table[] = {
|
||||
{"mxl692", 0},
|
||||
{ "mxl692" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mxl692_id_table);
|
||||
|
||||
@@ -876,7 +876,7 @@ static void rtl2830_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id rtl2830_id_table[] = {
|
||||
{"rtl2830", 0},
|
||||
{ "rtl2830" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, rtl2830_id_table);
|
||||
|
||||
@@ -1125,7 +1125,7 @@ static void rtl2832_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id rtl2832_id_table[] = {
|
||||
{"rtl2832", 0},
|
||||
{ "rtl2832" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, rtl2832_id_table);
|
||||
|
||||
@@ -1281,7 +1281,7 @@ static void si2165_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id si2165_id_table[] = {
|
||||
{"si2165", 0},
|
||||
{ "si2165" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, si2165_id_table);
|
||||
|
||||
@@ -788,7 +788,7 @@ static void si2168_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id si2168_id_table[] = {
|
||||
{"si2168", 0},
|
||||
{ "si2168" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, si2168_id_table);
|
||||
|
||||
@@ -407,7 +407,7 @@ static void sp2_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id sp2_id[] = {
|
||||
{"sp2", 0},
|
||||
{ "sp2" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sp2_id);
|
||||
|
||||
@@ -5079,7 +5079,7 @@ error:
|
||||
EXPORT_SYMBOL_GPL(stv090x_attach);
|
||||
|
||||
static const struct i2c_device_id stv090x_id_table[] = {
|
||||
{"stv090x", 0},
|
||||
{ "stv090x" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, stv090x_id_table);
|
||||
|
||||
@@ -470,7 +470,7 @@ const struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
|
||||
EXPORT_SYMBOL_GPL(stv6110x_attach);
|
||||
|
||||
static const struct i2c_device_id stv6110x_id_table[] = {
|
||||
{"stv6110x", 0},
|
||||
{ "stv6110x" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, stv6110x_id_table);
|
||||
|
||||
@@ -1230,7 +1230,7 @@ static void tda10071_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id tda10071_id_table[] = {
|
||||
{"tda10071_cx24118", 0},
|
||||
{ "tda10071_cx24118" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, tda10071_id_table);
|
||||
|
||||
@@ -710,8 +710,8 @@ static void ts2020_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ts2020_id_table[] = {
|
||||
{"ts2020", 0},
|
||||
{"ts2022", 0},
|
||||
{ "ts2020" },
|
||||
{ "ts2022" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ts2020_id_table);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user