mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
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:
committed by
Greg Kroah-Hartman
parent
852d3f917a
commit
54e22bbf11
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user