summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_pcd8544.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_pcd8544.c
parent1014c2ce082241db728e0528dd5f1bfb04fd0b06 (diff)
downloadlinux-stable-94c0a5442708dbc4226f8aabcf9163caac179a92.tar.gz
linux-stable-94c0a5442708dbc4226f8aabcf9163caac179a92.tar.bz2
linux-stable-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_pcd8544.c')
-rw-r--r--drivers/staging/fbtft/fb_pcd8544.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd8544.c
index dea698a016fa..7ba220f07d01 100644
--- a/drivers/staging/fbtft/fb_pcd8544.c
+++ b/drivers/staging/fbtft/fb_pcd8544.c
@@ -29,7 +29,7 @@
#define DRVNAME "fb_pcd8544"
#define WIDTH 84
#define HEIGHT 48
-#define TXBUFLEN (84*6)
+#define TXBUFLEN (84 * 6)
#define DEFAULT_GAMMA "40" /* gamma controls the contrast in this driver */
static unsigned tc;
@@ -125,14 +125,15 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
for (y = 0; y < 6; y++) {
*buf = 0x00;
for (i = 0; i < 8; i++)
- *buf |= (vmem16[(y*8+i)*84+x] ? 1 : 0) << i;
+ *buf |= (vmem16[(y * 8 + i) * 84 + x] ?
+ 1 : 0) << i;
buf++;
}
}
/* Write data */
gpio_set_value(par->gpio.dc, 1);
- ret = par->fbtftops.write(par, par->txbuf.buf, 6*84);
+ ret = par->fbtftops.write(par, par->txbuf.buf, 6 * 84);
if (ret < 0)
dev_err(par->info->device, "write failed and returned: %d\n",
ret);