]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Staging: comedi: drivers: fix space coding style in am9513.h
authorBob Beattie <bob.beattie@ntlworld.com>
Thu, 3 Jun 2010 23:19:02 +0000 (00:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Jun 2010 20:43:12 +0000 (13:43 -0700)
This is a patch to the file am9513.h that fixes missing space warnings
found by the checkpatch.pl tool.

Signed-off-by: Bob Beattie <bob.beattie@ntlworld.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/am9513.h

index 73367d6afffe0c1d9ca754cf51bff1e5c79f3032..0bb839e514935c0821372f4e3816dc0b5b9d79f0 100644 (file)
 #ifdef Am9513_8BITBUS
 
 #define Am9513_write_register(reg, val)                                \
-       do                                                    \
+       do {                                                    \
                Am9513_output_control(reg);                     \
                Am9513_output_data(val>>8);                     \
                Am9513_output_data(val&0xff);                   \
-       }while (0)
+       } while (0)
 
 #define Am9513_read_register(reg, val)                         \
-       do                                                    \
+       do {                                                    \
                Am9513_output_control(reg);                     \
-               val=Am9513_input_data()<<8;                     \
-               val|=Am9513_input_data();                       \
-       }while (0)
+               val = Am9513_input_data()<<8;                   \
+               val |= Am9513_input_data();                     \
+       } while (0)
 
 #else /* Am9513_16BITBUS */
 
 #define Am9513_write_register(reg, val)                                \
-       do                                                    \
+       do {                                                    \
                Am9513_output_control(reg);                     \
                Am9513_output_data(val);                        \
-       }while (0)
+       } while (0)
 
 #define Am9513_read_register(reg, val)                         \
-       do                                                    \
+       do {                                                    \
                Am9513_output_control(reg);                     \
-               val=Am9513_input_data();                        \
-       }while (0)
+               val = Am9513_input_data();                      \
+       } while (0)
 
 #endif