summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten2012-08-17 04:54:05 +0200
committerGreg Kroah-Hartman2012-08-17 17:17:36 +0200
commitb9616b18c1dbbc3bfad9c1801fb96f41c26449e2 (patch)
treeba06b803e6c183d884981da7f56c23316c2bb0fe
parentstaging: comedi: cb_pcimdda: fix bug in call to subdev_8255_cleanup (diff)
downloadkernel-qcow2-linux-b9616b18c1dbbc3bfad9c1801fb96f41c26449e2.tar.gz
kernel-qcow2-linux-b9616b18c1dbbc3bfad9c1801fb96f41c26449e2.tar.xz
kernel-qcow2-linux-b9616b18c1dbbc3bfad9c1801fb96f41c26449e2.zip
staging: comedi: cb_pcimdda: minor cleanup of the private data
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>
-rw-r--r--drivers/staging/comedi/drivers/cb_pcimdda.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/cb_pcimdda.c b/drivers/staging/comedi/drivers/cb_pcimdda.c
index 99a6160d3724..a5e055f0a5ff 100644
--- a/drivers/staging/comedi/drivers/cb_pcimdda.c
+++ b/drivers/staging/comedi/drivers/cb_pcimdda.c
@@ -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,