summaryrefslogtreecommitdiff
path: root/drivers/staging/fbtft/fb_ssd1306.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_ssd1306.c
parent1014c2ce082241db728e0528dd5f1bfb04fd0b06 (diff)
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_ssd1306.c')
-rw-r--r--drivers/staging/fbtft/fb_ssd1306.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_ssd1306.c b/drivers/staging/fbtft/fb_ssd1306.c
index 6013b68362c0..4fe899ba68cf 100644
--- a/drivers/staging/fbtft/fb_ssd1306.c
+++ b/drivers/staging/fbtft/fb_ssd1306.c
@@ -175,7 +175,9 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
for (y = 0; y < par->info->var.yres/8; y++) {
*buf = 0x00;
for (i = 0; i < 8; i++)
- *buf |= (vmem16[(y*8+i)*par->info->var.xres+x] ? 1 : 0) << i;
+ *buf |= (vmem16[(y * 8 + i) *
+ par->info->var.xres + x] ?
+ 1 : 0) << i;
buf++;
}
}
@@ -183,7 +185,8 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
/* Write data */
gpio_set_value(par->gpio.dc, 1);
ret = par->fbtftops.write(par, par->txbuf.buf,
- par->info->var.xres*par->info->var.yres/8);
+ par->info->var.xres * par->info->var.yres /
+ 8);
if (ret < 0)
dev_err(par->info->device, "write failed and returned: %d\n",
ret);