diff options
author | Anish Bhatt <anish7@gmail.com> | 2015-09-03 00:53:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-12 18:24:37 -0700 |
commit | 94c0a5442708dbc4226f8aabcf9163caac179a92 (patch) | |
tree | b441bdf455a18ee004ffc25129c562111bfd9131 /drivers/staging/fbtft/fb_pcd8544.c | |
parent | 1014c2ce082241db728e0528dd5f1bfb04fd0b06 (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_pcd8544.c')
-rw-r--r-- | drivers/staging/fbtft/fb_pcd8544.c | 7 |
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); |