summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_ili9325.c
diff options
context:
space:
mode:
authorAnish Bhatt2015-09-03 09:53:37 +0200
committerGreg Kroah-Hartman2015-09-13 03:24:37 +0200
commit94c0a5442708dbc4226f8aabcf9163caac179a92 (patch)
treeb441bdf455a18ee004ffc25129c562111bfd9131 /drivers/staging/fbtft/fb_ili9325.c
parentstaging/fbtft : Fix multiple/missing blank line issues (diff)
downloadkernel-qcow2-linux-94c0a5442708dbc4226f8aabcf9163caac179a92.tar.gz
kernel-qcow2-linux-94c0a5442708dbc4226f8aabcf9163caac179a92.tar.xz
kernel-qcow2-linux-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_ili9325.c')
-rw-r--r--drivers/staging/fbtft/fb_ili9325.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_ili9325.c b/drivers/staging/fbtft/fb_ili9325.c
index 92398a0a7e95..25e5a11d451e 100644
--- a/drivers/staging/fbtft/fb_ili9325.c
+++ b/drivers/staging/fbtft/fb_ili9325.c
@@ -221,7 +221,7 @@ static int set_var(struct fbtft_par *par)
VRP0 VRP1 RP0 RP1 KP0 KP1 KP2 KP3 KP4 KP5
VRN0 VRN1 RN0 RN1 KN0 KN1 KN2 KN3 KN4 KN5
*/
-#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[] = {
@@ -235,7 +235,7 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
/* apply mask */
for (i = 0; i < 2; i++)
for (j = 0; j < 10; 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, 5) << 8 | CURVE(0, 4));
write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6));