From: Payal Kshirsagar Date: Tue, 2 Apr 2019 14:37:43 +0000 (+0530) Subject: staging: fbtft: fb_agm1264k-fl.c: Replace bit shifting with BIT macro X-Git-Tag: v5.4-rc1~1076^2~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46a49a52d1c0e760a39ca0be56ce8a71f5661393;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index d4dca3c..eeeeec9 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 */