Commit c2e11bb1 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_tio.h: remove 'extern' from exported function prototypes

The 'extern' is not required, remove it.

Tidy up the function prototypes a bit.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f688d4a7
...@@ -126,40 +126,29 @@ struct ni_gpct_device { ...@@ -126,40 +126,29 @@ struct ni_gpct_device {
spinlock_t regs_lock; spinlock_t regs_lock;
}; };
extern struct ni_gpct_device *ni_gpct_device_construct(struct comedi_device struct ni_gpct_device *
*dev, ni_gpct_device_construct(struct comedi_device *,
void (*write_register) void (*write_register)(struct ni_gpct *,
(struct ni_gpct * unsigned bits,
counter, unsigned bits, enum ni_gpct_register),
enum ni_gpct_register unsigned (*read_register)(struct ni_gpct *,
reg), enum ni_gpct_register),
unsigned (*read_register) enum ni_gpct_variant,
(struct ni_gpct *
counter,
enum ni_gpct_register
reg),
enum ni_gpct_variant
variant,
unsigned num_counters); unsigned num_counters);
extern void ni_gpct_device_destroy(struct ni_gpct_device *counter_dev); void ni_gpct_device_destroy(struct ni_gpct_device *);
extern void ni_tio_init_counter(struct ni_gpct *counter); void ni_tio_init_counter(struct ni_gpct *);
extern int ni_tio_rinsn(struct ni_gpct *counter, int ni_tio_rinsn(struct ni_gpct *, struct comedi_insn *, unsigned int *data);
struct comedi_insn *insn, unsigned int *data); int ni_tio_insn_config(struct ni_gpct *, struct comedi_insn *,
extern int ni_tio_insn_config(struct ni_gpct *counter, unsigned int *data);
struct comedi_insn *insn, unsigned int *data); int ni_tio_winsn(struct ni_gpct *, struct comedi_insn *, unsigned int *data);
extern int ni_tio_winsn(struct ni_gpct *counter, int ni_tio_cmd(struct ni_gpct *, struct comedi_async *);
struct comedi_insn *insn, unsigned int *data); int ni_tio_cmdtest(struct ni_gpct *, struct comedi_cmd *);
extern int ni_tio_cmd(struct ni_gpct *counter, struct comedi_async *async); int ni_tio_cancel(struct ni_gpct *);
extern int ni_tio_cmdtest(struct ni_gpct *counter, struct comedi_cmd *cmd); void ni_tio_handle_interrupt(struct ni_gpct *, struct comedi_subdevice *);
extern int ni_tio_cancel(struct ni_gpct *counter); void ni_tio_set_mite_channel(struct ni_gpct *, struct mite_channel *);
extern void ni_tio_handle_interrupt(struct ni_gpct *counter, void ni_tio_acknowledge_and_confirm(struct ni_gpct *,
struct comedi_subdevice *s);
extern void ni_tio_set_mite_channel(struct ni_gpct *counter,
struct mite_channel *mite_chan);
extern void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter,
int *gate_error, int *tc_error, int *gate_error, int *tc_error,
int *perm_stale_data, int *perm_stale_data, int *stale_data);
int *stale_data);
static inline struct ni_gpct *subdev_to_counter(struct comedi_subdevice *s) static inline struct ni_gpct *subdev_to_counter(struct comedi_subdevice *s)
{ {
......
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