summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:13:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:13 -0700
commit938f185d4eea489ad802554e2faef9c99e377aa5 (patch)
treea66cf6a13e4737e42062b396ed011403e67381f3 /drivers/staging/comedi
parentb90c76fd78a101835eb1cc17271d008ed51688d3 (diff)
downloadblackbird-obmc-linux-938f185d4eea489ad802554e2faef9c99e377aa5.tar.gz
blackbird-obmc-linux-938f185d4eea489ad802554e2faef9c99e377aa5.zip
Staging: comedi: das800: Remove das800_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/das800.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/das800.c b/drivers/staging/comedi/drivers/das800.c
index 71586cccdaca..7a6656bf809c 100644
--- a/drivers/staging/comedi/drivers/das800.c
+++ b/drivers/staging/comedi/drivers/das800.c
@@ -232,15 +232,15 @@ static const struct das800_board das800_boards[] = {
*/
#define thisboard ((const struct das800_board *)dev->board_ptr)
-typedef struct {
+struct das800_private {
volatile unsigned int count; /* number of data points left to be taken */
volatile int forever; /* flag indicating whether we should take data forever */
unsigned int divisor1; /* value to load into board's counter 1 for timed conversions */
unsigned int divisor2; /* value to load into board's counter 2 for timed conversions */
volatile int do_bits; /* digital output bits */
-} das800_private;
+};
-#define devpriv ((das800_private *)dev->private)
+#define devpriv ((struct das800_private *)dev->private)
static int das800_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int das800_detach(struct comedi_device * dev);
@@ -456,7 +456,7 @@ static int das800_attach(struct comedi_device * dev, struct comedi_devconfig * i
printk("\n");
/* allocate and initialize dev->private */
- if (alloc_private(dev, sizeof(das800_private)) < 0)
+ if (alloc_private(dev, sizeof(struct das800_private)) < 0)
return -ENOMEM;
if (iobase == 0) {
OpenPOWER on IntegriCloud