diff options
author | Anish Bhatt <anish7@gmail.com> | 2015-09-03 00:53:33 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-12 18:24:36 -0700 |
commit | e6ea2028e04b2adea69b06ef6d5e2d73f82b713c (patch) | |
tree | 0d4414a3ba63813d8cbde556b603e8cdd38a7df5 /drivers/staging/fbtft/fb_hx8353d.c | |
parent | 6d657dac56438bf7ade5a05142a633e7f5e43984 (diff) |
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_hx8353d.c')
-rw-r--r-- | drivers/staging/fbtft/fb_hx8353d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/fbtft/fb_hx8353d.c b/drivers/staging/fbtft/fb_hx8353d.c index 79e7ebc90368..73791232799e 100644 --- a/drivers/staging/fbtft/fb_hx8353d.c +++ b/drivers/staging/fbtft/fb_hx8353d.c @@ -87,9 +87,9 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) write_reg(par, 0x2c); } -#define my (1 << 7) -#define mx (1 << 6) -#define mv (1 << 5) +#define my BIT(7) +#define mx BIT(6) +#define mv BIT(5) static int set_var(struct fbtft_par *par) { fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__); |