mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 13:23:02 -04:00
comedi: Drop unused assignments from pnp_device_id arrays
Explicitly assigning .driver_data in drivers that don't use this member is silly and a bit irritating. Drop these. Also simplify the list terminator entry to be just empty to match what most other device_id tables do. 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> Link: https://patch.msgid.link/c938b407cc16e9db2a59c67f390f073eeee6f1b3.1781016848.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0c419df9c1
commit
0502b95447
@@ -224,10 +224,10 @@ static void c6xdigio_init(struct comedi_device *dev)
|
||||
|
||||
static const struct pnp_device_id c6xdigio_pnp_tbl[] = {
|
||||
/* Standard LPT Printer Port */
|
||||
{.id = "PNP0400", .driver_data = 0},
|
||||
{ .id = "PNP0400" },
|
||||
/* ECP Printer Port */
|
||||
{.id = "PNP0401", .driver_data = 0},
|
||||
{}
|
||||
{ .id = "PNP0401" },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct pnp_driver c6xdigio_pnp_driver = {
|
||||
|
||||
@@ -215,13 +215,13 @@ static const int ni_irqpin[] = {
|
||||
|
||||
#include "ni_mio_common.c"
|
||||
|
||||
static const struct pnp_device_id __maybe_unused device_ids[] = {
|
||||
{.id = "NIC1900", .driver_data = 0},
|
||||
{.id = "NIC2400", .driver_data = 0},
|
||||
{.id = "NIC2500", .driver_data = 0},
|
||||
{.id = "NIC2600", .driver_data = 0},
|
||||
{.id = "NIC2700", .driver_data = 0},
|
||||
{.id = ""}
|
||||
static const struct pnp_device_id device_ids[] = {
|
||||
{ .id = "NIC1900" },
|
||||
{ .id = "NIC2400" },
|
||||
{ .id = "NIC2500" },
|
||||
{ .id = "NIC2600" },
|
||||
{ .id = "NIC2700" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(pnp, device_ids);
|
||||
|
||||
Reference in New Issue
Block a user