mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
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) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/f23c9d77836f3b14b1efc58e3969333e8addb1c1.1781078782.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
fbf64f3595
commit
bb14d970bf
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user