staging: comedi: comedidev.h: add identifiers to function parameters

Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ian Abbott 2016-12-15 13:19:51 +00:00 committed by Greg Kroah-Hartman
parent 1016d5a6c2
commit 9fe3b628e6
1 changed files with 25 additions and 22 deletions

View File

@ -982,19 +982,21 @@ unsigned int comedi_buf_read_samples(struct comedi_subdevice *s,
#define COMEDI_TIMEOUT_MS 1000 #define COMEDI_TIMEOUT_MS 1000
int comedi_timeout(struct comedi_device *, struct comedi_subdevice *, int comedi_timeout(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn *, struct comedi_insn *insn,
int (*cb)(struct comedi_device *, struct comedi_subdevice *, int (*cb)(struct comedi_device *dev,
struct comedi_insn *, unsigned long context), struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned long context),
unsigned long context); unsigned long context);
unsigned int comedi_handle_events(struct comedi_device *dev, unsigned int comedi_handle_events(struct comedi_device *dev,
struct comedi_subdevice *s); struct comedi_subdevice *s);
int comedi_dio_insn_config(struct comedi_device *, struct comedi_subdevice *, int comedi_dio_insn_config(struct comedi_device *dev,
struct comedi_insn *, unsigned int *data, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data,
unsigned int mask); unsigned int mask);
unsigned int comedi_dio_update_state(struct comedi_subdevice *, unsigned int comedi_dio_update_state(struct comedi_subdevice *s,
unsigned int *data); unsigned int *data);
unsigned int comedi_bytes_per_scan(struct comedi_subdevice *s); unsigned int comedi_bytes_per_scan(struct comedi_subdevice *s);
unsigned int comedi_nscans_left(struct comedi_subdevice *s, unsigned int comedi_nscans_left(struct comedi_subdevice *s,
@ -1004,32 +1006,33 @@ unsigned int comedi_nsamples_left(struct comedi_subdevice *s,
void comedi_inc_scan_progress(struct comedi_subdevice *s, void comedi_inc_scan_progress(struct comedi_subdevice *s,
unsigned int num_bytes); unsigned int num_bytes);
void *comedi_alloc_devpriv(struct comedi_device *, size_t); void *comedi_alloc_devpriv(struct comedi_device *dev, size_t size);
int comedi_alloc_subdevices(struct comedi_device *, int); int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices);
int comedi_alloc_subdev_readback(struct comedi_subdevice *); int comedi_alloc_subdev_readback(struct comedi_subdevice *s);
int comedi_readback_insn_read(struct comedi_device *, struct comedi_subdevice *, int comedi_readback_insn_read(struct comedi_device *dev,
struct comedi_insn *, unsigned int *data); struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data);
int comedi_load_firmware(struct comedi_device *, struct device *, int comedi_load_firmware(struct comedi_device *dev, struct device *hw_dev,
const char *name, const char *name,
int (*cb)(struct comedi_device *, int (*cb)(struct comedi_device *dev,
const u8 *data, size_t size, const u8 *data, size_t size,
unsigned long context), unsigned long context),
unsigned long context); unsigned long context);
int __comedi_request_region(struct comedi_device *, int __comedi_request_region(struct comedi_device *dev,
unsigned long start, unsigned long len); unsigned long start, unsigned long len);
int comedi_request_region(struct comedi_device *, int comedi_request_region(struct comedi_device *dev,
unsigned long start, unsigned long len); unsigned long start, unsigned long len);
void comedi_legacy_detach(struct comedi_device *); void comedi_legacy_detach(struct comedi_device *dev);
int comedi_auto_config(struct device *, struct comedi_driver *, int comedi_auto_config(struct device *hardware_device,
unsigned long context); struct comedi_driver *driver, unsigned long context);
void comedi_auto_unconfig(struct device *); void comedi_auto_unconfig(struct device *hardware_device);
int comedi_driver_register(struct comedi_driver *); int comedi_driver_register(struct comedi_driver *driver);
void comedi_driver_unregister(struct comedi_driver *); void comedi_driver_unregister(struct comedi_driver *driver);
/** /**
* module_comedi_driver() - Helper macro for registering a comedi driver * module_comedi_driver() - Helper macro for registering a comedi driver