staging: comedi: daqboard2000: use designated initializers

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>
This commit is contained in:
Ian Abbott 2017-01-04 10:55:44 +00:00 committed by Greg Kroah-Hartman
parent 852d3f917a
commit 54e22bbf11
1 changed files with 8 additions and 2 deletions

View File

@ -251,8 +251,14 @@ struct db2k_boardtype {
}; };
static const struct db2k_boardtype db2k_boardtypes[] = { 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 { struct db2k_private {