For aesthetic reasons, reformat the boardinfo declaration and
add some whitespace. Remove all the information that is set to
'0' as this is the default.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Ian Abbott <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/ni_labpc_cs.c | 48 ++++++++++++----------------
 1 file changed, 21 insertions(+), 27 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_labpc_cs.c 
b/drivers/staging/comedi/drivers/ni_labpc_cs.c
index 6c6ca40..334fa78 100644
--- a/drivers/staging/comedi/drivers/ni_labpc_cs.c
+++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c
@@ -79,33 +79,27 @@ static struct pcmcia_device *pcmcia_cur_dev;
 
 static const struct labpc_board_struct labpc_cs_boards[] = {
        {
-        .name = "daqcard-1200",
-        .device_id = 0x103,    /* 0x10b is manufacturer id,
-                                  0x103 is device id */
-        .ai_speed = 10000,
-        .bustype = pcmcia_bustype,
-        .register_layout = labpc_1200_layout,
-        .has_ao = 1,
-        .ai_range_table = &range_labpc_1200_ai,
-        .ai_range_code = labpc_1200_ai_gain_bits,
-        .ai_range_is_unipolar = labpc_1200_is_unipolar,
-        .ai_scan_up = 0,
-        .memory_mapped_io = 0,
-        },
-       /* duplicate entry, to support using alternate name */
-       {
-        .name = "ni_labpc_cs",
-        .device_id = 0x103,
-        .ai_speed = 10000,
-        .bustype = pcmcia_bustype,
-        .register_layout = labpc_1200_layout,
-        .has_ao = 1,
-        .ai_range_table = &range_labpc_1200_ai,
-        .ai_range_code = labpc_1200_ai_gain_bits,
-        .ai_range_is_unipolar = labpc_1200_is_unipolar,
-        .ai_scan_up = 0,
-        .memory_mapped_io = 0,
-        },
+               .name                   = "daqcard-1200",
+               .device_id              = 0x103,
+               .ai_speed               = 10000,
+               .bustype                = pcmcia_bustype,
+               .register_layout        = labpc_1200_layout,
+               .has_ao                 = 1,
+               .ai_range_table         = &range_labpc_1200_ai,
+               .ai_range_code          = labpc_1200_ai_gain_bits,
+               .ai_range_is_unipolar   = labpc_1200_is_unipolar,
+       }, {
+               /* duplicate entry, to support using alternate name */
+               .name                   = "ni_labpc_cs",
+               .device_id              = 0x103,
+               .ai_speed               = 10000,
+               .bustype                = pcmcia_bustype,
+               .register_layout        = labpc_1200_layout,
+               .has_ao                 = 1,
+               .ai_range_table         = &range_labpc_1200_ai,
+               .ai_range_code          = labpc_1200_ai_gain_bits,
+               .ai_range_is_unipolar   = labpc_1200_is_unipolar,
+       },
 };
 
 static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
-- 
1.8.0.2

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to