Skip to content

Commit

Permalink
Staging: comedi: drivers: fix space coding style in am9513.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Beattie authored and Greg Kroah-Hartman committed Jun 17, 2010
1 parent daca497 commit 0c55484
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/staging/comedi/drivers/am9513.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,32 @@
#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

Expand Down

0 comments on commit 0c55484

Please sign in to comment.