From 75b807393272fcfcf54d1188c667dc0fccd1fb69 Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:16:12 -0400 Subject: [PATCH] Staging: comedi: Remove atao_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_ao.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_at_ao.c b/drivers/staging/comedi/drivers/ni_at_ao.c index f8c950d52ab6..efacfda03b2f 100644 --- a/drivers/staging/comedi/drivers/ni_at_ao.c +++ b/drivers/staging/comedi/drivers/ni_at_ao.c @@ -168,15 +168,17 @@ static const atao_board atao_boards[] = { #define thisboard ((atao_board *)dev->board_ptr) -typedef struct { +struct atao_private { + unsigned short cfg1; unsigned short cfg2; unsigned short cfg3; /* Used for AO readback */ unsigned int ao_readback[10]; -} atao_private; -#define devpriv ((atao_private *)dev->private) +}; + +#define devpriv ((struct atao_private *)dev->private) static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int atao_detach(struct comedi_device * dev); @@ -230,7 +232,7 @@ static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it) dev->board_name = thisboard->name; - if (alloc_private(dev, sizeof(atao_private)) < 0) + if (alloc_private(dev, sizeof(struct atao_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 4) < 0) -- 2.20.1