From: H Hartley Sweeten Date: Tue, 1 Oct 2013 22:12:35 +0000 (-0700) Subject: staging: comedi: ni_6527: tidy up ni6527_intr_cmd() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=633b56539c0fd7847054e70e51851cb001d10a25;p=linux-beck.git staging: comedi: ni_6527: tidy up ni6527_intr_cmd() For aesthetics, use a local variable for the __iomem base address used to write to the registers. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c index 5ca6d8930904..c1b281b1a8a0 100644 --- a/drivers/staging/comedi/drivers/ni_6527.c +++ b/drivers/staging/comedi/drivers/ni_6527.c @@ -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; }