staging: comedi: cb_pcimdda: minor cleanup of the private data
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:54:05 +0000 (19:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:17:36 +0000 (08:17 -0700)
Remove the cut-and-paste comment from the skel driver and for
aesthetic reasons, move the #define out of the struct.

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

index 99a6160d37246e322962878871271d1121c7b881..a5e055f0a5ffc3bb9192554c22a23a37583cfc93 100644 (file)
@@ -98,17 +98,10 @@ Configuration Options:
 #define PCIMDDA_DA_CHAN(x)             (0x00 + (x) * 2)
 #define PCIMDDA_8255_BASE_REG          0x0c
 
-/*
- * this structure is for data unique to this hardware driver.  If
- * several hardware drivers keep similar information in this structure,
- * feel free to suggest moving the variable to the struct comedi_device
- * struct.
- */
+#define MAX_AO_READBACK_CHANNELS       6
+
 struct cb_pcimdda_private {
-#define MAX_AO_READBACK_CHANNELS 6
-       /* Used for AO readback */
        unsigned int ao_readback[MAX_AO_READBACK_CHANNELS];
-
 };
 
 static int cb_pcimdda_ao_winsn(struct comedi_device *dev,