diff options
author | Anish Bhatt | 2015-09-03 09:53:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-09-13 03:24:36 +0200 |
commit | e6ea2028e04b2adea69b06ef6d5e2d73f82b713c (patch) | |
tree | 0d4414a3ba63813d8cbde556b603e8cdd38a7df5 /drivers/staging/fbtft/fb_hx8340bn.c | |
parent | staging: fbtft: fb_watterott: define backlight_ops statically (diff) | |
download | kernel-qcow2-linux-e6ea2028e04b2adea69b06ef6d5e2d73f82b713c.tar.gz kernel-qcow2-linux-e6ea2028e04b2adea69b06ef6d5e2d73f82b713c.tar.xz kernel-qcow2-linux-e6ea2028e04b2adea69b06ef6d5e2d73f82b713c.zip |
staging/fbtft : Use BIT() macro when possible
Based on checkpatch.pl recommendations, (1 << x)
is replaced by BIT(x)
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_hx8340bn.c')
-rw-r--r-- | drivers/staging/fbtft/fb_hx8340bn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/fbtft/fb_hx8340bn.c b/drivers/staging/fbtft/fb_hx8340bn.c index c5b2e5178991..d6dd034f32ef 100644 --- a/drivers/staging/fbtft/fb_hx8340bn.c +++ b/drivers/staging/fbtft/fb_hx8340bn.c @@ -113,9 +113,9 @@ static int set_var(struct fbtft_par *par) { /* MADCTL - Memory data access control */ /* RGB/BGR can be set with H/W pin SRGB and MADCTL BGR bit */ -#define MY (1 << 7) -#define MX (1 << 6) -#define MV (1 << 5) +#define MY BIT(7) +#define MX BIT(6) +#define MV BIT(5) switch (par->info->var.rotate) { case 0: write_reg(par, 0x36, par->bgr << 3); |