aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft
diff options
context:
space:
mode:
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>2019-04-02 20:07:43 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-02 19:57:11 +0200
commit46a49a52d1c0e760a39ca0be56ce8a71f5661393 (patch)
tree4941450f8e55e227db620efb8521686265d9bdf9 /drivers/staging/fbtft
parentstaging: rtlwifi: base.c: Replace bit shifting with BIT macro (diff)
downloadlinux-dev-46a49a52d1c0e760a39ca0be56ce8a71f5661393.tar.xz
linux-dev-46a49a52d1c0e760a39ca0be56ce8a71f5661393.zip
staging: fbtft: fb_agm1264k-fl.c: Replace bit shifting with BIT macro
Challenge suggested by coccinelle. Prefer using BIT and replace bit shifting with the BIT(x) macro. Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r--drivers/staging/fbtft/fb_agm1264k-fl.c2
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 d4dca3ce4db0..eeeeec97ad27 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -383,7 +383,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
/* select right side (sc1)
* set addr
*/
- write_reg(par, 0x01, 1 << 6);
+ write_reg(par, 0x01, BIT(6));
write_reg(par, 0x01, (0x17 << 3) | (u8)y);
/* write bitmap */