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

staging: comedi: c6xdigio: tidy up C6X_encResetAll()

Rename the CamelCase function.

For aesthetics, pass the comedi_device pointer instead of the dev->iobase.
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 0aeb924b
...@@ -195,19 +195,19 @@ static int C6X_encInput(unsigned long baseAddr, unsigned channel) ...@@ -195,19 +195,19 @@ static int C6X_encInput(unsigned long baseAddr, unsigned channel)
return enc.value ^ 0x800000; return enc.value ^ 0x800000;
} }
static void C6X_encResetAll(unsigned long baseAddr) static void c6xdigio_encoder_reset(struct comedi_device *dev)
{ {
outb_p(0x68, baseAddr); outb_p(0x68, dev->iobase);
c6xdigio_chk_status(baseAddr, 0x00); c6xdigio_chk_status(dev->iobase, 0x00);
outb_p(0x6c, baseAddr); outb_p(0x6c, dev->iobase);
c6xdigio_chk_status(baseAddr, 0x80); c6xdigio_chk_status(dev->iobase, 0x80);
outb_p(0x68, baseAddr); outb_p(0x68, dev->iobase);
c6xdigio_chk_status(baseAddr, 0x00); c6xdigio_chk_status(dev->iobase, 0x00);
outb_p(0x0, baseAddr); outb_p(0x0, dev->iobase);
c6xdigio_chk_status(baseAddr, 0x80); c6xdigio_chk_status(dev->iobase, 0x80);
} }
static int c6xdigio_pwmo_insn_write(struct comedi_device *dev, static int c6xdigio_pwmo_insn_write(struct comedi_device *dev,
...@@ -241,7 +241,7 @@ static int c6xdigio_ei_insn_read(struct comedi_device *dev, ...@@ -241,7 +241,7 @@ static int c6xdigio_ei_insn_read(struct comedi_device *dev,
static void board_init(struct comedi_device *dev) static void board_init(struct comedi_device *dev)
{ {
c6xdigio_pwm_init(dev); c6xdigio_pwm_init(dev);
C6X_encResetAll(dev->iobase); c6xdigio_encoder_reset(dev);
} }
static const struct pnp_device_id c6xdigio_pnp_tbl[] = { static const struct pnp_device_id c6xdigio_pnp_tbl[] = {
......
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