summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-03-10 14:07:26 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 14:03:58 -0700
commit0aeb924b342820b64a6c8a2bb424495ecc4603a1 (patch)
tree96db39e262c09ec08520604c9856f957c418b479
parent8a0b00771c1df39215969db408dcfa61f704940b (diff)
staging: comedi: c6xdigio: tidy up C6X_pwmInit()
Rename the CamelCase function. For aesthetics, pass the comedi_device pointer instead of the dev->iobase. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/c6xdigio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/comedi/drivers/c6xdigio.c b/drivers/staging/comedi/drivers/c6xdigio.c
index 22315b81a973..fc317b06dd9d 100644
--- a/drivers/staging/comedi/drivers/c6xdigio.c
+++ b/drivers/staging/comedi/drivers/c6xdigio.c
@@ -92,19 +92,19 @@ static int c6xdigio_chk_status(unsigned long baseAddr, unsigned long context)
return -EBUSY;
}
-static void C6X_pwmInit(unsigned long baseAddr)
+static void c6xdigio_pwm_init(struct comedi_device *dev)
{
- outb_p(0x70, baseAddr);
- c6xdigio_chk_status(baseAddr, 0x00);
+ outb_p(0x70, dev->iobase);
+ c6xdigio_chk_status(dev->iobase, 0x00);
- outb_p(0x74, baseAddr);
- c6xdigio_chk_status(baseAddr, 0x80);
+ outb_p(0x74, dev->iobase);
+ c6xdigio_chk_status(dev->iobase, 0x80);
- outb_p(0x70, baseAddr);
- c6xdigio_chk_status(baseAddr, 0x00);
+ outb_p(0x70, dev->iobase);
+ c6xdigio_chk_status(dev->iobase, 0x00);
- outb_p(0x0, baseAddr);
- c6xdigio_chk_status(baseAddr, 0x80);
+ outb_p(0x0, dev->iobase);
+ c6xdigio_chk_status(dev->iobase, 0x80);
}
static void C6X_pwmOutput(unsigned long baseAddr, unsigned channel, int value)
@@ -240,7 +240,7 @@ static int c6xdigio_ei_insn_read(struct comedi_device *dev,
static void board_init(struct comedi_device *dev)
{
- C6X_pwmInit(dev->iobase);
+ c6xdigio_pwm_init(dev);
C6X_encResetAll(dev->iobase);
}