Commit 61abd03a authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Greg Kroah-Hartman

staging: fbtft: Remove the use of CamelCase

Rename the macro defining constant ROWxCOL into ROW_X_COL to remove
checkpatch check concerning use of CamelCase and to achieve better
readability.

CHECK: Avoid CamelCase: <ROWxCOL>
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ead3c5ce
...@@ -64,13 +64,13 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) ...@@ -64,13 +64,13 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
#define HFLIP 0x01 #define HFLIP 0x01
#define VFLIP 0x02 #define VFLIP 0x02
#define ROWxCOL 0x20 #define ROW_X_COL 0x20
static int set_var(struct fbtft_par *par) static int set_var(struct fbtft_par *par)
{ {
switch (par->info->var.rotate) { switch (par->info->var.rotate) {
case 270: case 270:
write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, write_reg(par, MIPI_DCS_SET_ADDRESS_MODE,
ROWxCOL | HFLIP | VFLIP | (par->bgr << 3)); ROW_X_COL | HFLIP | VFLIP | (par->bgr << 3));
break; break;
case 180: case 180:
write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, write_reg(par, MIPI_DCS_SET_ADDRESS_MODE,
...@@ -78,7 +78,7 @@ static int set_var(struct fbtft_par *par) ...@@ -78,7 +78,7 @@ static int set_var(struct fbtft_par *par)
break; break;
case 90: case 90:
write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, write_reg(par, MIPI_DCS_SET_ADDRESS_MODE,
ROWxCOL | (par->bgr << 3)); ROW_X_COL | (par->bgr << 3));
break; break;
default: default:
write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, write_reg(par, MIPI_DCS_SET_ADDRESS_MODE,
......
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