]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: addi_apci_1564: move apci1564_di_insn_bits() to addi_apci_1564.c
authorChase Southwood <chase.southwood@gmail.com>
Thu, 22 May 2014 00:40:09 +0000 (19:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:30:26 +0000 (21:30 +0900)
This function is already compliant with the comedi API and is behaving as
comedi core expects.  This patch moves it out of
addi-data/hwdrv_apci1564.c and into the driver proper since no further
work needs to be done on it.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-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/addi-data/hwdrv_apci1564.c
drivers/staging/comedi/drivers/addi_apci_1564.c

index b3c3f603fb73209d114396a61435e8387f4f0754..533d156c546e1b216522f1bb598ddc1dcd3e83d6 100644 (file)
@@ -129,18 +129,6 @@ static int apci1564_di_config(struct comedi_device *dev,
        return insn->n;
 }
 
-static int apci1564_di_insn_bits(struct comedi_device *dev,
-                                struct comedi_subdevice *s,
-                                struct comedi_insn *insn,
-                                unsigned int *data)
-{
-       struct addi_private *devpriv = dev->private;
-
-       data[1] = inl(devpriv->i_IobaseAmcc + APCI1564_DI_REG);
-
-       return insn->n;
-}
-
 /*
  * Configures The Digital Output Subdevice.
  *
index cbccbb6a2b76d0adfc8c5b2ca44d6c4af7181081..fe477cc55af7f9abe7cf3da53c03acaca7eb0b15 100644 (file)
@@ -14,6 +14,18 @@ static irqreturn_t v_ADDI_Interrupt(int irq, void *d)
        return IRQ_RETVAL(1);
 }
 
+static int apci1564_di_insn_bits(struct comedi_device *dev,
+                                struct comedi_subdevice *s,
+                                struct comedi_insn *insn,
+                                unsigned int *data)
+{
+       struct addi_private *devpriv = dev->private;
+
+       data[1] = inl(devpriv->i_IobaseAmcc + APCI1564_DI_REG);
+
+       return insn->n;
+}
+
 static int apci1564_reset(struct comedi_device *dev)
 {
        struct addi_private *devpriv = dev->private;