]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: comedi: ni_6527: tidy up ni6527_intr_cmd()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 1 Oct 2013 22:12:35 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2013 21:09:54 +0000 (14:09 -0700)
For aesthetics, use a local variable for the __iomem base address
used to write to the registers.

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>
drivers/staging/comedi/drivers/ni_6527.c

index 5ca6d89309043cd989b7ca518ee9fa9b4461b384..c1b281b1a8a0da81a8326f07208534468fed2578 100644 (file)
@@ -272,12 +272,10 @@ static int ni6527_intr_cmd(struct comedi_device *dev,
                           struct comedi_subdevice *s)
 {
        struct ni6527_private *devpriv = dev->private;
-       /* struct comedi_cmd *cmd = &s->async->cmd; */
+       void __iomem *mmio = devpriv->mite->daq_io_addr;
 
-       writeb(NI6527_CLR_IRQS,
-              devpriv->mite->daq_io_addr + NI6527_CLR_REG);
-       writeb(NI6527_CTRL_ENABLE_IRQS,
-              devpriv->mite->daq_io_addr + NI6527_CTRL_REG);
+       writeb(NI6527_CLR_IRQS, mmio + NI6527_CLR_REG);
+       writeb(NI6527_CTRL_ENABLE_IRQS, mmio + NI6527_CTRL_REG);
 
        return 0;
 }