Staging: comedi: 8255: Fix coding style error
authorBen Kero <bkero@ponderosa.osuosl.org>
Wed, 23 Sep 2009 09:49:05 +0000 (02:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:21:48 +0000 (12:21 -0800)
EXPORT_SYMBOL's in the wrong place.  Unnecessary {}s

Signed-off-by: Ben Kero <ben.kero@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/8255.c

index 0a50864767e4634368ac47f84c9bf38eaa209b27..10f488f0e5ee732f49f6ad319ad046aa5e637a4a 100644 (file)
@@ -132,6 +132,7 @@ void subdev_8255_interrupt(struct comedi_device *dev,
 
        comedi_event(dev, s);
 }
+EXPORT_SYMBOL(subdev_8255_interrupt);
 
 static int subdev_8255_cb(int dir, int port, int data, unsigned long arg)
 {
@@ -179,15 +180,14 @@ static int subdev_8255_insn_config(struct comedi_device *dev,
        unsigned int bits;
 
        mask = 1 << CR_CHAN(insn->chanspec);
-       if (mask & 0x0000ff) {
+       if (mask & 0x0000ff)
                bits = 0x0000ff;
-       } else if (mask & 0x00ff00) {
+       else if (mask & 0x00ff00)
                bits = 0x00ff00;
-       } else if (mask & 0x0f0000) {
+       else if (mask & 0x0f0000)
                bits = 0x0f0000;
-       } else {
+       else
                bits = 0xf00000;
-       }
 
        switch (data[0]) {
        case INSN_CONFIG_DIO_INPUT:
@@ -333,11 +333,10 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
                return -ENOMEM;
 
        CALLBACK_ARG = arg;
-       if (cb == NULL) {
+       if (cb == NULL)
                CALLBACK_FUNC = subdev_8255_cb;
-       } else {
+       else
                CALLBACK_FUNC = cb;
-       }
        s->insn_bits = subdev_8255_insn;
        s->insn_config = subdev_8255_insn_config;
 
@@ -347,6 +346,7 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
 
        return 0;
 }
+EXPORT_SYMBOL(subdev_8255_init);
 
 int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
                         int (*cb) (int, int, int, unsigned long),
@@ -366,6 +366,7 @@ int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
 
        return 0;
 }
+EXPORT_SYMBOL(subdev_8255_init_irq);
 
 void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
 {
@@ -378,6 +379,7 @@ void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
                kfree(s->private);
        }
 }
+EXPORT_SYMBOL(subdev_8255_cleanup);
 
 /*
 
@@ -448,8 +450,3 @@ static int dev_8255_detach(struct comedi_device *dev)
 
        return 0;
 }
-
-EXPORT_SYMBOL(subdev_8255_init);
-EXPORT_SYMBOL(subdev_8255_init_irq);
-EXPORT_SYMBOL(subdev_8255_cleanup);
-EXPORT_SYMBOL(subdev_8255_interrupt);