[PATCH v1] gpib: Improve style of pnp_device_id array terminators
From: Uwe Kleine-König (The Capable Hub)
Date: Wed Jun 10 2026 - 04:38:05 EST
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) <u.kleine-koenig@xxxxxxxxxxxx>
---
Hello,
I'm currently working on a changing various *_device_id definitions.
This patch is irrelevant for this quest and a pure style update for
consistency reasons without further dependencies on it.
So if you don't like this patch, I won't insist.
Best regards
Uwe
drivers/gpib/hp_82341/hp_82341.c | 4 ++--
drivers/gpib/tnt4882/tnt4882_gpib.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpib/hp_82341/hp_82341.c b/drivers/gpib/hp_82341/hp_82341.c
index 46175ba2ac36..e98cf5aea99f 100644
--- a/drivers/gpib/hp_82341/hp_82341.c
+++ b/drivers/gpib/hp_82341/hp_82341.c
@@ -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
diff --git a/drivers/gpib/tnt4882/tnt4882_gpib.c b/drivers/gpib/tnt4882/tnt4882_gpib.c
index 51a920e1d9a4..3cd13f637ed4 100644
--- a/drivers/gpib/tnt4882/tnt4882_gpib.c
+++ b/drivers/gpib/tnt4882/tnt4882_gpib.c
@@ -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
base-commit: 49e02880ec0a8c378e811bc9d85da188d7c6204c
--
2.47.3