mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 08:15:07 -04:00
media: Drop unused assignments from pnp_device_id array
Explicitly assigning .driver_data in drivers that don't use this member is silly and a bit irritating. Drop it. Also simplify the list terminator entry to be just empty to match what most other device_id tables do. While touching these arrays convert them to use named initializers, empty list terminators and no comma after the terminator. There is no changed semantic, not even a change in the compiled result. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Sean Young <sean@mess.org>
This commit is contained in:
committed by
Sean Young
parent
479aa6fa8c
commit
2cf8593cc8
@@ -527,8 +527,8 @@ static const struct v4l2_ctrl_ops cadet_ctrl_ops = {
|
||||
|
||||
static const struct pnp_device_id cadet_pnp_devices[] = {
|
||||
/* ADS Cadet AM/FM Radio Card */
|
||||
{.id = "MSM0c24", .driver_data = 0},
|
||||
{.id = ""}
|
||||
{ .id = "MSM0c24" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(pnp, cadet_pnp_devices);
|
||||
|
||||
@@ -284,8 +284,8 @@ static const int gemtek_ioports[] = { 0x20c, 0x30c, 0x24c, 0x34c, 0x248, 0x28c }
|
||||
#ifdef CONFIG_PNP
|
||||
static const struct pnp_device_id gemtek_pnp_devices[] = {
|
||||
/* AOpen FX-3D/Pro Radio */
|
||||
{.id = "ADS7183", .driver_data = 0},
|
||||
{.id = ""}
|
||||
{ .id = "ADS7183" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(pnp, gemtek_pnp_devices);
|
||||
|
||||
@@ -642,8 +642,8 @@ static void fintek_shutdown(struct pnp_dev *pdev)
|
||||
}
|
||||
|
||||
static const struct pnp_device_id fintek_ids[] = {
|
||||
{ "FIT0002", 0 }, /* CIR */
|
||||
{ "", 0 },
|
||||
{ .id = "FIT0002" }, /* CIR */
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct pnp_driver fintek_driver = {
|
||||
|
||||
@@ -1092,9 +1092,9 @@ static void nvt_shutdown(struct pnp_dev *pdev)
|
||||
}
|
||||
|
||||
static const struct pnp_device_id nvt_ids[] = {
|
||||
{ "WEC0530", 0 }, /* CIR */
|
||||
{ "NTN0530", 0 }, /* CIR for new chip's pnp id*/
|
||||
{ "", 0 },
|
||||
{ .id = "WEC0530" }, /* CIR */
|
||||
{ .id = "NTN0530" }, /* CIR for new chip's pnp id*/
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct pnp_driver nvt_driver = {
|
||||
|
||||
@@ -1179,8 +1179,8 @@ wbcir_remove(struct pnp_dev *device)
|
||||
}
|
||||
|
||||
static const struct pnp_device_id wbcir_ids[] = {
|
||||
{ "WEC1022", 0 },
|
||||
{ "", 0 }
|
||||
{ .id = "WEC1022" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pnp, wbcir_ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user