From: Eva Rachel Retuya Date: Fri, 12 Feb 2016 07:39:30 +0000 (+0800) Subject: staging: fbtft: Remove the use of CamelCase X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61abd03a3dba2f6a73c06930075935683b474fa8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Signed-off-by: Eva Rachel Retuya Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fb_ili9481.c b/drivers/staging/fbtft/fb_ili9481.c index fb0e6c316947..242adb3859bd 100644 --- a/drivers/staging/fbtft/fb_ili9481.c +++ b/drivers/staging/fbtft/fb_ili9481.c @@ -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 VFLIP 0x02 -#define ROWxCOL 0x20 +#define ROW_X_COL 0x20 static int set_var(struct fbtft_par *par) { switch (par->info->var.rotate) { case 270: write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, - ROWxCOL | HFLIP | VFLIP | (par->bgr << 3)); + ROW_X_COL | HFLIP | VFLIP | (par->bgr << 3)); break; case 180: write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, @@ -78,7 +78,7 @@ static int set_var(struct fbtft_par *par) break; case 90: write_reg(par, MIPI_DCS_SET_ADDRESS_MODE, - ROWxCOL | (par->bgr << 3)); + ROW_X_COL | (par->bgr << 3)); break; default: write_reg(par, MIPI_DCS_SET_ADDRESS_MODE,