[PATCH 09/50] staging: comedi: amplc_pci224: use struct comedi_kcmd

Ian Abbott abbotti at mev.co.uk
Tue Sep 18 18:46:18 UTC 2012


Use `struct comedi_kcmd` instead of `struct comedi_cmd`.

Signed-off-by: Ian Abbott <abbotti at mev.co.uk>
---
 drivers/staging/comedi/drivers/amplc_pci224.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c
index 365f911..e8a50cd 100644
--- a/drivers/staging/comedi/drivers/amplc_pci224.c
+++ b/drivers/staging/comedi/drivers/amplc_pci224.c
@@ -541,7 +541,7 @@ static void pci224_ao_start(struct comedi_device *dev,
 			    struct comedi_subdevice *s)
 {
 	struct pci224_private *devpriv = dev->private;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_kcmd *cmd = &s->async->cmd;
 	unsigned long flags;
 
 	set_bit(AO_CMD_STARTED, &devpriv->state);
@@ -570,7 +570,7 @@ static void pci224_ao_handle_fifo(struct comedi_device *dev,
 				  struct comedi_subdevice *s)
 {
 	struct pci224_private *devpriv = dev->private;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_kcmd *cmd = &s->async->cmd;
 	unsigned int num_scans;
 	unsigned int room;
 	unsigned short dacstat;
@@ -714,7 +714,7 @@ pci224_ao_inttrig_start(struct comedi_device *dev, struct comedi_subdevice *s,
  */
 static int
 pci224_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
-		  struct comedi_cmd *cmd)
+		  struct comedi_kcmd *cmd)
 {
 	struct pci224_private *devpriv = dev->private;
 	int err = 0;
@@ -988,7 +988,7 @@ pci224_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
 static int pci224_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
 {
 	struct pci224_private *devpriv = dev->private;
-	struct comedi_cmd *cmd = &s->async->cmd;
+	struct comedi_kcmd *cmd = &s->async->cmd;
 	int range;
 	unsigned int i, j;
 	unsigned int ch;
@@ -1194,7 +1194,7 @@ static irqreturn_t pci224_interrupt(int irq, void *d)
 	struct comedi_device *dev = d;
 	struct pci224_private *devpriv = dev->private;
 	struct comedi_subdevice *s = &dev->subdevices[0];
-	struct comedi_cmd *cmd;
+	struct comedi_kcmd *cmd;
 	unsigned char intstat, valid_intstat;
 	unsigned char curenab;
 	int retval = 0;
-- 
1.7.12




More information about the devel mailing list