mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
staging: fbtft: fb_ssd1351.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>
This commit is contained in:
parent
46a49a52d1
commit
36cbd6851d
@ -81,10 +81,10 @@ static int set_var(struct fbtft_par *par)
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
write_reg(par, 0xA0, remap | 0x00 | 1 << 4);
|
||||
write_reg(par, 0xA0, remap | 0x00 | BIT(4));
|
||||
break;
|
||||
case 270:
|
||||
write_reg(par, 0xA0, remap | 0x03 | 1 << 4);
|
||||
write_reg(par, 0xA0, remap | 0x03 | BIT(4));
|
||||
break;
|
||||
case 180:
|
||||
write_reg(par, 0xA0, remap | 0x02);
|
||||
|
Loading…
Reference in New Issue
Block a user