diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:11:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:03 -0700 |
commit | ecce6332ef5f88ba0ac8e9e7511538431952dda7 (patch) | |
tree | f5e4a0cb0357e7316c7426f08d52bd7239203ce9 | |
parent | cfee7b998b2407f5ee53d76bae9e2805baf6dbb4 (diff) |
Staging: comedi: Remove timer_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/comedi_rt_timer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_rt_timer.c b/drivers/staging/comedi/drivers/comedi_rt_timer.c index 29dd715e3ff..f40c8cffd4b 100644 --- a/drivers/staging/comedi/drivers/comedi_rt_timer.c +++ b/drivers/staging/comedi/drivers/comedi_rt_timer.c @@ -138,7 +138,7 @@ static struct comedi_driver driver_timer = { COMEDI_INITCLEANUP(driver_timer); -typedef struct { +struct timer_private { comedi_t *device; // device we are emulating commands for int subd; // subdevice we are emulating commands for RT_TASK *rt_task; // rt task that starts scans @@ -159,8 +159,8 @@ typedef struct { volatile int rt_task_active; // indicates rt_task is servicing a struct comedi_cmd volatile int scan_task_active; // indicates scan_task is servicing a struct comedi_cmd unsigned timer_running:1; -} timer_private; -#define devpriv ((timer_private *)dev->private) +}; +#define devpriv ((struct timer_private *)dev->private) static int timer_cancel(struct comedi_device * dev, struct comedi_subdevice * s) { @@ -623,7 +623,7 @@ static int timer_attach(struct comedi_device * dev, struct comedi_devconfig * it if ((ret = alloc_subdevices(dev, 1)) < 0) return ret; - if ((ret = alloc_private(dev, sizeof(timer_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct timer_private))) < 0) return ret; sprintf(path, "/dev/comedi%d", it->options[0]); |