gpib: Improve style of pnp_device_id array terminators

To match how device-id array terminators look like for other device
types drop `.id = ""` from it and let the compiler care for zeroing the
entry.

While touching these arrays, also align spacing to how these arrays are
usually written.

There are no changes in the compiled drivers, only the source looks
nicer.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <[email protected]>
Link: https://patch.msgid.link/f23c9d77836f3b14b1efc58e3969333e8addb1c1.1781078782.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) authored and Greg Kroah-Hartman committed 2026-07-17 14:54:14 +02:00
1 parent fbf64f3595
commit bb14d970bf
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -803,8 +803,8 @@ static void hp_82341_detach(struct gpib_board *board)
#if 0
/* unused, will be needed when the driver is turned into a pnp_driver */
static const struct pnp_device_id hp_82341_pnp_table[] = {
{.id = "HWP1411"},
{.id = ""}
{ .id = "HWP1411" },
{ }
};
MODULE_DEVICE_TABLE(pnp, hp_82341_pnp_table);
#endif
+2 -2
View File
@@ -1373,8 +1373,8 @@ static struct pci_driver tnt4882_pci_driver = {
#if 0
/* unused, will be needed when the driver is turned into a pnp_driver */
static const struct pnp_device_id tnt4882_pnp_table[] = {
{.id = "NICC601"},
{.id = ""}
{ .id = "NICC601" },
{ }
};
MODULE_DEVICE_TABLE(pnp, tnt4882_pnp_table);
#endif