[PATCH] Staging: comedi: mpc82860: fixed a brace coding style issue

From: Michael Dabydeen
Date: Sat May 26 2012 - 11:22:48 EST


Fixed a coding style issue

Signed-off-by: Michael Dabydeen<mdabydeen@xxxxxxxxx>
---
drivers/staging/comedi/drivers/mpc8260cpm.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/comedi/drivers/mpc8260cpm.c b/drivers/staging/comedi/drivers/mpc8260cpm.c
index 364470e..6d291b7 100644
--- a/drivers/staging/comedi/drivers/mpc8260cpm.c
+++ b/drivers/staging/comedi/drivers/mpc8260cpm.c
@@ -36,7 +36,7 @@ It is apparently missing some code.

#include "../comedidev.h"

-extern unsigned long mpc8260_dio_reserved[4];
+unsigned long mpc8260_dio_reserved[4];

struct mpc8260cpm_private {

@@ -71,10 +71,8 @@ static int mpc8260cpm_dio_config(struct comedi_device *dev,

port = (int)s->private;
mask = 1 << CR_CHAN(insn->chanspec);
- if (mask & cpm_reserved_bits[port]) {
+ if (mask & cpm_reserved_bits[port])
return -EINVAL;
- }
-
switch (data[0]) {
case INSN_CONFIG_DIO_OUTPUT:
s->io_bits |= mask;
@@ -122,7 +120,7 @@ static int mpc8260cpm_attach(struct comedi_device *dev,
struct comedi_subdevice *s;
int i;

- printk("comedi%d: mpc8260cpm: ", dev->minor);
+ printk(KERN_ERROR , "comedi%d: mpc8260cpm: ", dev->minor);

dev->board_ptr = mpc8260cpm_boards + dev->board;

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/