提交 0c55484d 编写于 作者: B Bob Beattie 提交者: Greg Kroah-Hartman

Staging: comedi: drivers: fix space coding style in am9513.h

This is a patch to the file am9513.h that fixes missing space warnings
found by the checkpatch.pl tool.
Signed-off-by: NBob Beattie <bob.beattie@ntlworld.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 daca497d
...@@ -47,32 +47,32 @@ ...@@ -47,32 +47,32 @@
#ifdef Am9513_8BITBUS #ifdef Am9513_8BITBUS
#define Am9513_write_register(reg, val) \ #define Am9513_write_register(reg, val) \
do{ \ do { \
Am9513_output_control(reg); \ Am9513_output_control(reg); \
Am9513_output_data(val>>8); \ Am9513_output_data(val>>8); \
Am9513_output_data(val&0xff); \ Am9513_output_data(val&0xff); \
}while (0) } while (0)
#define Am9513_read_register(reg, val) \ #define Am9513_read_register(reg, val) \
do{ \ do { \
Am9513_output_control(reg); \ Am9513_output_control(reg); \
val=Am9513_input_data()<<8; \ val = Am9513_input_data()<<8; \
val|=Am9513_input_data(); \ val |= Am9513_input_data(); \
}while (0) } while (0)
#else /* Am9513_16BITBUS */ #else /* Am9513_16BITBUS */
#define Am9513_write_register(reg, val) \ #define Am9513_write_register(reg, val) \
do{ \ do { \
Am9513_output_control(reg); \ Am9513_output_control(reg); \
Am9513_output_data(val); \ Am9513_output_data(val); \
}while (0) } while (0)
#define Am9513_read_register(reg, val) \ #define Am9513_read_register(reg, val) \
do{ \ do { \
Am9513_output_control(reg); \ Am9513_output_control(reg); \
val=Am9513_input_data(); \ val = Am9513_input_data(); \
}while (0) } while (0)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册