Commit d0a353f6 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove comedi_rangeinfo typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0707bb04
...@@ -299,7 +299,7 @@ enum comedi_support_level { ...@@ -299,7 +299,7 @@ enum comedi_support_level {
#define COMEDI_LOCK _IO(CIO, 5) #define COMEDI_LOCK _IO(CIO, 5)
#define COMEDI_UNLOCK _IO(CIO, 6) #define COMEDI_UNLOCK _IO(CIO, 6)
#define COMEDI_CANCEL _IO(CIO, 7) #define COMEDI_CANCEL _IO(CIO, 7)
#define COMEDI_RANGEINFO _IOR(CIO, 8, comedi_rangeinfo) #define COMEDI_RANGEINFO _IOR(CIO, 8, struct comedi_rangeinfo)
#define COMEDI_CMD _IOR(CIO, 9, struct comedi_cmd) #define COMEDI_CMD _IOR(CIO, 9, struct comedi_cmd)
#define COMEDI_CMDTEST _IOR(CIO, 10, struct comedi_cmd) #define COMEDI_CMDTEST _IOR(CIO, 10, struct comedi_cmd)
#define COMEDI_INSNLIST _IOR(CIO, 11, struct comedi_insnlist) #define COMEDI_INSNLIST _IOR(CIO, 11, struct comedi_insnlist)
...@@ -310,7 +310,6 @@ enum comedi_support_level { ...@@ -310,7 +310,6 @@ enum comedi_support_level {
/* structures */ /* structures */
typedef struct comedi_rangeinfo_struct comedi_rangeinfo;
typedef struct comedi_krange_struct comedi_krange; typedef struct comedi_krange_struct comedi_krange;
typedef struct comedi_bufconfig_struct comedi_bufconfig; typedef struct comedi_bufconfig_struct comedi_bufconfig;
typedef struct comedi_bufinfo_struct comedi_bufinfo; typedef struct comedi_bufinfo_struct comedi_bufinfo;
...@@ -378,7 +377,7 @@ struct comedi_chaninfo { ...@@ -378,7 +377,7 @@ struct comedi_chaninfo {
unsigned int unused[4]; unsigned int unused[4];
}; };
struct comedi_rangeinfo_struct { struct comedi_rangeinfo {
unsigned int range_type; unsigned int range_type;
void *range_ptr; void *range_ptr;
}; };
......
...@@ -158,7 +158,7 @@ static int compat_chaninfo(struct file *file, unsigned long arg) ...@@ -158,7 +158,7 @@ static int compat_chaninfo(struct file *file, unsigned long arg)
/* Handle 32-bit COMEDI_RANGEINFO ioctl. */ /* Handle 32-bit COMEDI_RANGEINFO ioctl. */
static int compat_rangeinfo(struct file *file, unsigned long arg) static int compat_rangeinfo(struct file *file, unsigned long arg)
{ {
comedi_rangeinfo __user *rangeinfo; struct comedi_rangeinfo __user *rangeinfo;
struct comedi32_rangeinfo_struct __user *rangeinfo32; struct comedi32_rangeinfo_struct __user *rangeinfo32;
int err; int err;
union { union {
......
...@@ -375,7 +375,7 @@ enum subdevice_runflags { ...@@ -375,7 +375,7 @@ enum subdevice_runflags {
various internal comedi functions various internal comedi functions
*/ */
int do_rangeinfo_ioctl(struct comedi_device *dev, comedi_rangeinfo *arg); int do_rangeinfo_ioctl(struct comedi_device *dev, struct comedi_rangeinfo *arg);
int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist); int check_chanlist(struct comedi_subdevice *s, int n, unsigned int *chanlist);
void comedi_set_subdevice_runflags(struct comedi_subdevice *s, unsigned mask, void comedi_set_subdevice_runflags(struct comedi_subdevice *s, unsigned mask,
unsigned bits); unsigned bits);
......
...@@ -44,14 +44,14 @@ const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none}} }; ...@@ -44,14 +44,14 @@ const struct comedi_lrange range_unknown = { 1, {{0, 1000000, UNIT_none}} };
writes: writes:
n comedi_krange structures to rangeinfo->range_ptr n comedi_krange structures to rangeinfo->range_ptr
*/ */
int do_rangeinfo_ioctl(struct comedi_device *dev, comedi_rangeinfo *arg) int do_rangeinfo_ioctl(struct comedi_device *dev, struct comedi_rangeinfo *arg)
{ {
comedi_rangeinfo it; struct comedi_rangeinfo it;
int subd, chan; int subd, chan;
const struct comedi_lrange *lr; const struct comedi_lrange *lr;
struct comedi_subdevice *s; struct comedi_subdevice *s;
if (copy_from_user(&it, arg, sizeof(comedi_rangeinfo))) if (copy_from_user(&it, arg, sizeof(struct comedi_rangeinfo)))
return -EFAULT; return -EFAULT;
subd = (it.range_type >> 24) & 0xf; subd = (it.range_type >> 24) & 0xf;
chan = (it.range_type >> 16) & 0xff; chan = (it.range_type >> 16) & 0xff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment