aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_s6d1121.c
diff options
context:
space:
mode:
authorAnish Bhatt <anish7@gmail.com>2015-09-03 00:53:37 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:24:37 -0700
commit94c0a5442708dbc4226f8aabcf9163caac179a92 (patch)
treeb441bdf455a18ee004ffc25129c562111bfd9131 /drivers/staging/fbtft/fb_s6d1121.c
parentstaging/fbtft : Fix multiple/missing blank line issues (diff)
downloadlinux-dev-94c0a5442708dbc4226f8aabcf9163caac179a92.tar.xz
linux-dev-94c0a5442708dbc4226f8aabcf9163caac179a92.zip
staging/fbtft : Add missing whitespace around operators
Add blank spaces around operators where recommended by checkpatch.pl Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_s6d1121.c')
-rw-r--r--drivers/staging/fbtft/fb_s6d1121.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_s6d1121.c b/drivers/staging/fbtft/fb_s6d1121.c
index e97d1c5d7b3f..9ee8d56cd569 100644
--- a/drivers/staging/fbtft/fb_s6d1121.c
+++ b/drivers/staging/fbtft/fb_s6d1121.c
@@ -133,7 +133,7 @@ static int set_var(struct fbtft_par *par)
PKP0 PKP1 PKP2 PKP3 PKP4 PKP5 PKP6 PKP7 PKP8 PKP9 PKP10 PKP11 VRP0 VRP1
PKN0 PKN1 PKN2 PKN3 PKN4 PKN5 PKN6 PKN7 PRN8 PRN9 PRN10 PRN11 VRN0 VRN1
*/
-#define CURVE(num, idx) curves[num*par->gamma.num_values + idx]
+#define CURVE(num, idx) curves[num * par->gamma.num_values + idx]
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
{
unsigned long mask[] = {
@@ -148,7 +148,7 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
/* apply mask */
for (i = 0; i < 2; i++)
for (j = 0; j < 14; j++)
- CURVE(i, j) &= mask[i*par->gamma.num_values + j];
+ CURVE(i, j) &= mask[i * par->gamma.num_values + j];
write_reg(par, 0x0030, CURVE(0, 1) << 8 | CURVE(0, 0));
write_reg(par, 0x0031, CURVE(0, 3) << 8 | CURVE(0, 2));