staging: comedi: daqboard2000: use designated initializers
authorIan Abbott <abbotti@mev.co.uk>
Wed, 4 Jan 2017 10:55:44 +0000 (10:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:38:32 +0000 (17:38 +0100)
Replace the undesignated initializers for each element of
`db2k_boardtypes[]` with an equivalent designated initializer for ease
of future maintenance.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/daqboard2000.c

index 7a086cfa27127062de1552d7be6ea8e2ac64035f..18933c2565d96649cd67fe9ad1f0280ac3c328d7 100644 (file)
@@ -251,8 +251,14 @@ struct db2k_boardtype {
 };
 
 static const struct db2k_boardtype db2k_boardtypes[] = {
-       {"ids2", DB2K_SUBSYSTEM_IDS2},
-       {"ids4", DB2K_SUBSYSTEM_IDS4},
+       {
+               .name           = "ids2",
+               .id             = DB2K_SUBSYSTEM_IDS2,
+       },
+       {
+               .name           = "ids4",
+               .id             = DB2K_SUBSYSTEM_IDS4,
+       },
 };
 
 struct db2k_private {