aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft.h
diff options
context:
space:
mode:
authorHelen Fornazier <helen.fornazier@gmail.com>2015-03-25 20:56:43 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 10:40:31 +0100
commit4ebe6f46cb20b004e94e9862509085f6b7e69366 (patch)
treebcdb1b2cce1dc63db310043b22e058dd016d65fc /drivers/staging/fbtft/fbtft.h
parentstaging: fbtft: Add space around '=' (diff)
downloadlinux-dev-4ebe6f46cb20b004e94e9862509085f6b7e69366.tar.xz
linux-dev-4ebe6f46cb20b004e94e9862509085f6b7e69366.zip
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: Helen Fornazier <helen.fornazier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft.h')
-rw-r--r--drivers/staging/fbtft/fbtft.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h
index 36ecf026d67d..f55cc5b77c15 100644
--- a/drivers/staging/fbtft/fbtft.h
+++ b/drivers/staging/fbtft/fbtft.h
@@ -259,9 +259,7 @@ struct fbtft_par {
#define NUMARGS(...) (sizeof((int[]){__VA_ARGS__})/sizeof(int))
#define write_reg(par, ...) \
-do { \
- par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__); \
-} while (0)
+ par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__)
/* fbtft-core.c */
extern void fbtft_dbg_hex(const struct device *dev,