diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-22 22:28:28 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-23 14:25:33 +0100 |
commit | 12eed2f2fb8ff7623295a5f69e22ef247273cd8f (patch) | |
tree | 18bd94906cfaa71d338863c7923bc922121d9fe6 /drivers/staging/fbtft/fb_agm1264k-fl.c | |
parent | staging: rts5208: Replace a bit shift by a use of BIT. (diff) | |
download | linux-dev-12eed2f2fb8ff7623295a5f69e22ef247273cd8f.tar.xz linux-dev-12eed2f2fb8ff7623295a5f69e22ef247273cd8f.zip |
staging: fbtft: Replace a bit shift by a use of BIT.
This patch replaces bit shifting on 1 with the BIT(x) macro.
This was done with coccinelle:
@@
constant c;
@@
-1 << c
+BIT(c)
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_agm1264k-fl.c')
-rw-r--r-- | drivers/staging/fbtft/fb_agm1264k-fl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index 4ee76dbd30b5..489151a6bf80 100644 --- a/drivers/staging/fbtft/fb_agm1264k-fl.c +++ b/drivers/staging/fbtft/fb_agm1264k-fl.c @@ -369,7 +369,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) /* select left side (sc0) * set addr */ - write_reg(par, 0x00, (1 << 6) | (u8)addr_win.xs); + write_reg(par, 0x00, BIT(6) | (u8)addr_win.xs); write_reg(par, 0x00, (0x17 << 3) | (u8)y); /* write bitmap */ |