staging: fbtft: fb_agm1264k-fl.c: Replace bit shifting with BIT macro
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Tue, 2 Apr 2019 14:37:43 +0000 (20:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2019 17:57:11 +0000 (19:57 +0200)
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>
drivers/staging/fbtft/fb_agm1264k-fl.c

index d4dca3c..eeeeec9 100644 (file)
@@ -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 */