summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:19:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:11 -0700
commit201007e8bc7b3e94be823eda5a684199152410d1 (patch)
treef2d34bb568fc1ee08d1b6f99efbbc370417f9a1d
parent9335f2613b6beca0f3f3e20ce5a550d1ffe66aa2 (diff)
Staging: comedi: Remove rti802_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/rti802.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/rti802.c b/drivers/staging/comedi/drivers/rti802.c
index 656742be898a..cc2c385db0b0 100644
--- a/drivers/staging/comedi/drivers/rti802.c
+++ b/drivers/staging/comedi/drivers/rti802.c
@@ -58,15 +58,15 @@ static struct comedi_driver driver_rti802 = {
COMEDI_INITCLEANUP(driver_rti802);
-typedef struct {
+struct rti802_private {
enum {
dac_2comp, dac_straight
} dac_coding[8];
const struct comedi_lrange *range_type_list[8];
unsigned int ao_readback[8];
-} rti802_private;
+};
-#define devpriv ((rti802_private *)dev->private)
+#define devpriv ((struct rti802_private *)dev->private)
static int rti802_ao_insn_read(struct comedi_device * dev, struct comedi_subdevice * s,
struct comedi_insn * insn, unsigned int * data)
@@ -113,7 +113,7 @@ static int rti802_attach(struct comedi_device * dev, struct comedi_devconfig * i
dev->board_name = "rti802";
if (alloc_subdevices(dev, 1) < 0
- || alloc_private(dev, sizeof(rti802_private))) {
+ || alloc_private(dev, sizeof(struct rti802_private))) {
return -ENOMEM;
}