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

staging: comedi: addi_apci_3501: rename CamelCase vars in apci3501_interrupt()

Rename the CamelCase local variables.
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 63316aae
...@@ -262,25 +262,26 @@ static irqreturn_t apci3501_interrupt(int irq, void *d) ...@@ -262,25 +262,26 @@ static irqreturn_t apci3501_interrupt(int irq, void *d)
{ {
struct comedi_device *dev = d; struct comedi_device *dev = d;
struct apci3501_private *devpriv = dev->private; struct apci3501_private *devpriv = dev->private;
unsigned int ui_Timer_AOWatchdog; unsigned int status;
unsigned long ul_Command1; unsigned int ctrl;
/* Disable Interrupt */ /* Disable Interrupt */
ul_Command1 = inl(dev->iobase + APCI3501_TIMER_CTRL_REG); ctrl = inl(dev->iobase + APCI3501_TIMER_CTRL_REG);
ul_Command1 = ul_Command1 & 0xFFFFF9FDul; ctrl &= 0xfffff9fd;
outl(ul_Command1, dev->iobase + APCI3501_TIMER_CTRL_REG); outl(ctrl, dev->iobase + APCI3501_TIMER_CTRL_REG);
ui_Timer_AOWatchdog = inl(dev->iobase + APCI3501_TIMER_IRQ_REG) & 0x1; status = inl(dev->iobase + APCI3501_TIMER_IRQ_REG) & 0x1;
if ((!ui_Timer_AOWatchdog)) { if (!status) {
dev_err(dev->class_dev, "IRQ from unknown source\n"); dev_err(dev->class_dev, "IRQ from unknown source\n");
return IRQ_NONE; return IRQ_NONE;
} }
/* Enable Interrupt Send a signal to from kernel to user space */ /* Enable Interrupt Send a signal to from kernel to user space */
send_sig(SIGIO, devpriv->tsk_Current, 0); send_sig(SIGIO, devpriv->tsk_Current, 0);
ul_Command1 = inl(dev->iobase + APCI3501_TIMER_CTRL_REG); ctrl = inl(dev->iobase + APCI3501_TIMER_CTRL_REG);
ul_Command1 = (ul_Command1 & 0xFFFFF9FDul) | 1 << 1; ctrl &= 0xfffff9fd;
outl(ul_Command1, dev->iobase + APCI3501_TIMER_CTRL_REG); ctrl |= 1 << 1;
outl(ctrl, dev->iobase + APCI3501_TIMER_CTRL_REG);
inl(dev->iobase + APCI3501_TIMER_STATUS_REG); inl(dev->iobase + APCI3501_TIMER_STATUS_REG);
return IRQ_HANDLED; return IRQ_HANDLED;
......
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