Staging: comedi: Remove device_create_result_type typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
9ced1de691
commit
0bfbbe8f09
|
@ -2130,7 +2130,7 @@ int comedi_alloc_board_minor(struct device *hardware_device)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct comedi_device_file_info *info;
|
struct comedi_device_file_info *info;
|
||||||
device_create_result_type *csdev;
|
struct device *csdev;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
info = kzalloc(sizeof(struct comedi_device_file_info), GFP_KERNEL);
|
info = kzalloc(sizeof(struct comedi_device_file_info), GFP_KERNEL);
|
||||||
|
@ -2197,7 +2197,7 @@ int comedi_alloc_subdevice_minor(struct comedi_device *dev, struct comedi_subdev
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct comedi_device_file_info *info;
|
struct comedi_device_file_info *info;
|
||||||
device_create_result_type *csdev;
|
struct device *csdev;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
info = kmalloc(sizeof(struct comedi_device_file_info), GFP_KERNEL);
|
info = kmalloc(sizeof(struct comedi_device_file_info), GFP_KERNEL);
|
||||||
|
|
|
@ -121,8 +121,6 @@
|
||||||
#define COMEDI_NUM_BOARD_MINORS 0x30
|
#define COMEDI_NUM_BOARD_MINORS 0x30
|
||||||
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
|
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
|
||||||
|
|
||||||
typedef struct device device_create_result_type;
|
|
||||||
|
|
||||||
#define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, device, fmt...) \
|
#define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, device, fmt...) \
|
||||||
device_create(cs, ((parent) ? (parent) : (device)), devt, drvdata, fmt)
|
device_create(cs, ((parent) ? (parent) : (device)), devt, drvdata, fmt)
|
||||||
|
|
||||||
|
@ -183,7 +181,7 @@ struct comedi_subdevice {
|
||||||
|
|
||||||
unsigned int state;
|
unsigned int state;
|
||||||
|
|
||||||
device_create_result_type *class_dev;
|
struct device *class_dev;
|
||||||
int minor;
|
int minor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -256,7 +254,7 @@ struct comedi_device {
|
||||||
struct comedi_driver *driver;
|
struct comedi_driver *driver;
|
||||||
void *private;
|
void *private;
|
||||||
|
|
||||||
device_create_result_type *class_dev;
|
struct device *class_dev;
|
||||||
int minor;
|
int minor;
|
||||||
/* hw_dev is passed to dma_alloc_coherent when allocating async buffers
|
/* hw_dev is passed to dma_alloc_coherent when allocating async buffers
|
||||||
* for subdevices that have async_dma_dir set to something other than
|
* for subdevices that have async_dma_dir set to something other than
|
||||||
|
|
Loading…
Reference in New Issue