Commit 0401b42d authored by Aya Mahfouz's avatar Aya Mahfouz Committed by Greg Kroah-Hartman

staging: fbtft: fb_st7735r.c: remove extra parentheses around function arguments

Removes extra parentheses around function arguments. Issue
detected and resolved using the following coccinelle script:

@@
expression e;
identifier f;
@@

f(...,
-(
e
-)
,...)
Signed-off-by: default avatarAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e686d77
...@@ -130,7 +130,7 @@ static int set_var(struct fbtft_par *par) ...@@ -130,7 +130,7 @@ static int set_var(struct fbtft_par *par)
write_reg(par, 0x36, MY | MV | (par->bgr << 3)); write_reg(par, 0x36, MY | MV | (par->bgr << 3));
break; break;
case 180: case 180:
write_reg(par, 0x36, (par->bgr << 3)); write_reg(par, 0x36, par->bgr << 3);
break; break;
case 90: case 90:
write_reg(par, 0x36, MX | MV | (par->bgr << 3)); write_reg(par, 0x36, MX | MV | (par->bgr << 3));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment