]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi/drivers/pcl.* coding style fixes
authorMatthew Needes <mneedes@gmail.com>
Mon, 25 May 2015 23:41:20 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 01:07:18 +0000 (10:07 +0900)
pcl812.c / pcl816.c (resend of earlier patch)
   Fixed indentation problems.

Signed-off-by: Matthew Needes <mneedes@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl812.c
drivers/staging/comedi/drivers/pcl816.c

index 03a3fd6cd918b4e59d42da3b9fe9052172d3686d..7474ef99faba74dd535918197c2ba67111a405b6 100644 (file)
@@ -1155,7 +1155,7 @@ static int pcl812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
        /* we need an IRQ to do DMA on channel 3 or 1 */
        if (dev->irq && board->has_dma)
-                pcl812_alloc_dma(dev, it->options[2]);
+               pcl812_alloc_dma(dev, it->options[2]);
 
        /* differential analog inputs? */
        switch (board->board_type) {
index 1ccb2f19f4be6876d00824ad6fdb57811aa9a902..781b321587dc601a954af44459a7044ada205613 100644 (file)
@@ -323,7 +323,7 @@ static int check_channel_list(struct comedi_device *dev,
 
                /*  check whole chanlist */
                for (i = 0, segpos = 0; i < chanlen; i++) {
-                           if (chanlist[i] != chansegment[i % seglen]) {
+                       if (chanlist[i] != chansegment[i % seglen]) {
                                dev_dbg(dev->class_dev,
                                        "bad channel or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n",
                                        i, CR_CHAN(chansegment[i]),