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

staging: comedi: adv_pci1710: tidy up counter subdevice init

For aesthetics, add some whitespace to the counter subdevice init and
rename the support functions. Also remove the unnecessary comments.
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 2d21fc22
...@@ -532,10 +532,7 @@ static void pci171x_start_pacer(struct comedi_device *dev, ...@@ -532,10 +532,7 @@ static void pci171x_start_pacer(struct comedi_device *dev,
} }
} }
/* static int pci171x_counter_insn_read(struct comedi_device *dev,
==============================================================================
*/
static int pci171x_insn_counter_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -556,10 +553,7 @@ static int pci171x_insn_counter_read(struct comedi_device *dev, ...@@ -556,10 +553,7 @@ static int pci171x_insn_counter_read(struct comedi_device *dev,
return insn->n; return insn->n;
} }
/* static int pci171x_counter_insn_write(struct comedi_device *dev,
==============================================================================
*/
static int pci171x_insn_counter_write(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -586,10 +580,7 @@ static int pci171x_insn_counter_write(struct comedi_device *dev, ...@@ -586,10 +580,7 @@ static int pci171x_insn_counter_write(struct comedi_device *dev,
return insn->n; return insn->n;
} }
/* static int pci171x_counter_insn_config(struct comedi_device *dev,
==============================================================================
*/
static int pci171x_insn_counter_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -1156,9 +1147,9 @@ static int pci1710_auto_attach(struct comedi_device *dev, ...@@ -1156,9 +1147,9 @@ static int pci1710_auto_attach(struct comedi_device *dev,
s->n_chan = 1; s->n_chan = 1;
s->maxdata = 0xffff; s->maxdata = 0xffff;
s->range_table = &range_unknown; s->range_table = &range_unknown;
s->insn_read = pci171x_insn_counter_read; s->insn_read = pci171x_counter_insn_read;
s->insn_write = pci171x_insn_counter_write; s->insn_write = pci171x_counter_insn_write;
s->insn_config = pci171x_insn_counter_config; s->insn_config = pci171x_counter_insn_config;
subdev++; subdev++;
} }
......
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