“cf6ac4ce1bdf2d0718d5f33d62f695e105706a5d”上不存在“drivers/gpu/drm/omapdrm/dss/dsi.c”
提交 4ebe6f46 编写于 作者: H Helen Fornazier 提交者: Greg Kroah-Hartman

staging: fbtft: Remove do {} while(0) in single statement macro

This patch fixes the checkpatch.pl warning:

WARNING: Single statement macros should not use a do {} while (0) loop
+#define write_reg(par, ...)                                              \
+do {                                                                     \
+       par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__); \
+} while (0)
Signed-off-by: NHelen Fornazier <helen.fornazier@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1f5f636c
...@@ -259,9 +259,7 @@ struct fbtft_par { ...@@ -259,9 +259,7 @@ struct fbtft_par {
#define NUMARGS(...) (sizeof((int[]){__VA_ARGS__})/sizeof(int)) #define NUMARGS(...) (sizeof((int[]){__VA_ARGS__})/sizeof(int))
#define write_reg(par, ...) \ #define write_reg(par, ...) \
do { \ par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__)
par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__); \
} while (0)
/* fbtft-core.c */ /* fbtft-core.c */
extern void fbtft_dbg_hex(const struct device *dev, extern void fbtft_dbg_hex(const struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册