staging: comedi: pcl812: remove 0/NULL initialzation in boardinfo
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Feb 2014 21:26:38 +0000 (14:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:53:52 +0000 (11:53 -0800)
The unlisted members in the boardinfo declaration will default to 0/NULL.

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

index 609036005169ab7f0c2f51c68e8e66eb9ce19e7d..e1857cf1dba07cb986baad1b885e8b20d15aacca 100644 (file)
@@ -354,7 +354,6 @@ static const struct pcl812_board boardtypes[] = {
                .name           = "pcl812",
                .board_type     = boardPCL812,
                .n_aichan       = 16,
-               .n_aichan_diff  = 0,
                .n_aochan       = 2,
                .n_dichan       = 16,
                .n_dochan       = 16,
@@ -366,12 +365,10 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "pcl812pg",
                .board_type     = boardPCL812PG,
                .n_aichan       = 16,
-               .n_aichan_diff  = 0,
                .n_aochan       = 2,
                .n_dichan       = 16,
                .n_dochan       = 16,
@@ -383,12 +380,10 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "acl8112pg",
                .board_type     = boardPCL812PG,
                .n_aichan       = 16,
-               .n_aichan_diff  = 0,
                .n_aochan       = 2,
                .n_dichan       = 16,
                .n_dochan       = 16,
@@ -400,7 +395,6 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "acl8112dg",
                .board_type     = boardACL8112,
@@ -449,26 +443,18 @@ static const struct pcl812_board boardtypes[] = {
                .rangelist_ai   = &range_pcl813b_ai,
                .rangelist_ao   = &range_unipolar5,
                .IRQbits        = 0x000c,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a821pglnda",
                .board_type     = boardA821,
                .n_aichan       = 16,
                .n_aichan_diff  = 8,
-               .n_aochan       = 0,
-               .n_dichan       = 0,
-               .n_dochan       = 0,
                .ai_maxdata     = 0x0fff,
                .ai_ns_min      = 10000,
                .i8254_osc_base = I8254_OSC_BASE_2MHZ,
                .rangelist_ai   = &range_pcl813b_ai,
-               .rangelist_ao   = NULL,
                .IRQbits        = 0x000c,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a821pgh",
                .board_type     = boardA821,
@@ -483,9 +469,7 @@ static const struct pcl812_board boardtypes[] = {
                .rangelist_ai   = &range_a821pgh_ai,
                .rangelist_ao   = &range_unipolar5,
                .IRQbits        = 0x000c,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a822pgl",
                .board_type     = boardACL8112,
@@ -502,7 +486,6 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a822pgh",
                .board_type     = boardACL8112,
@@ -519,7 +502,6 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a823pgl",
                .board_type     = boardACL8112,
@@ -536,7 +518,6 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "a823pgh",
                .board_type     = boardACL8112,
@@ -553,75 +534,34 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "pcl813",
                .board_type     = boardPCL813,
                .n_aichan       = 32,
-               .n_aichan_diff  = 0,
-               .n_aochan       = 0,
-               .n_dichan       = 0,
-               .n_dochan       = 0,
                .ai_maxdata     = 0x0fff,
-               .ai_ns_min      = 0,
-               .i8254_osc_base = 0,
                .rangelist_ai   = &range_pcl813b_ai,
-               .rangelist_ao   = NULL,
-               .IRQbits        = 0x0000,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "pcl813b",
                .board_type     = boardPCL813B,
                .n_aichan       = 32,
-               .n_aichan_diff  = 0,
-               .n_aochan       = 0,
-               .n_dichan       = 0,
-               .n_dochan       = 0,
                .ai_maxdata     = 0x0fff,
-               .ai_ns_min      = 0,
-               .i8254_osc_base = 0,
                .rangelist_ai   = &range_pcl813b_ai,
-               .rangelist_ao   = NULL,
-               .IRQbits        = 0x0000,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "acl8113",
                .board_type     = boardACL8113,
                .n_aichan       = 32,
-               .n_aichan_diff  = 0,
-               .n_aochan       = 0,
-               .n_dichan       = 0,
-               .n_dochan       = 0,
                .ai_maxdata     = 0x0fff,
-               .ai_ns_min      = 0,
-               .i8254_osc_base = 0,
                .rangelist_ai   = &range_acl8113_1_ai,
-               .rangelist_ao   = NULL,
-               .IRQbits        = 0x0000,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "iso813",
                .board_type     = boardISO813,
                .n_aichan       = 32,
-               .n_aichan_diff  = 0,
-               .n_aochan       = 0,
-               .n_dichan       = 0,
-               .n_dochan       = 0,
                .ai_maxdata     = 0x0fff,
-               .ai_ns_min      = 0,
-               .i8254_osc_base = 0,
                .rangelist_ai   = &range_iso813_1_ai,
-               .rangelist_ao   = NULL,
-               .IRQbits        = 0x0000,
-               .DMAbits        = 0x00,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        }, {
                .name           = "acl8216",
                .board_type     = boardACL8216,
@@ -655,7 +595,6 @@ static const struct pcl812_board boardtypes[] = {
                .IRQbits        = 0xdcfc,
                .DMAbits        = 0x0a,
                .io_range       = PCLx1x_IORANGE,
-               .haveMPC508     = 0,
        },
 };