staging: fbtft: fb_tls8204: Fix checkpatch warning

Fix checkpatch.pl warning:
Block comments use * on subsequent lines
Block comments use a trailing */ on a separate line

Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Anson Jacob 2016-08-25 11:32:11 -04:00 committed by Greg Kroah-Hartman
parent fe9b610b37
commit 7bba53e9c2

View file

@ -44,21 +44,21 @@ static int init_display(struct fbtft_par *par)
par->fbtftops.reset(par); par->fbtftops.reset(par);
/* Enter extended command mode */ /* Enter extended command mode */
write_reg(par, 0x21); /* 5:1 1 write_reg(par, 0x21); /* 5:1 1
2:0 PD - Powerdown control: chip is active * 2:0 PD - Powerdown control: chip is active
1:0 V - Entry mode: horizontal addressing * 1:0 V - Entry mode: horizontal addressing
0:1 H - Extended instruction set control: * 0:1 H - Extended instruction set control:
extended * extended
*/ */
/* H=1 Bias system */ /* H=1 Bias system */
write_reg(par, 0x10 | (bs & 0x7)); /* write_reg(par, 0x10 | (bs & 0x7));
4:1 1 /* 4:1 1
3:0 0 * 3:0 0
2:x BS2 - Bias System * 2:x BS2 - Bias System
1:x BS1 * 1:x BS1
0:x BS0 * 0:x BS0
*/ */
/* Set the address of the first display line. */ /* Set the address of the first display line. */
write_reg(par, 0x04 | (64 >> 6)); write_reg(par, 0x04 | (64 >> 6));
@ -68,12 +68,12 @@ static int init_display(struct fbtft_par *par)
write_reg(par, 0x20); write_reg(par, 0x20);
/* H=0 Display control */ /* H=0 Display control */
write_reg(par, 0x08 | 4); /* write_reg(par, 0x08 | 4);
3:1 1 /* 3:1 1
2:1 D - DE: 10=normal mode * 2:1 D - DE: 10=normal mode
1:0 0 * 1:0 0
0:0 E * 0:0 E
*/ */
return 0; return 0;
} }
@ -81,15 +81,15 @@ static int init_display(struct fbtft_par *par)
static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
{ {
/* H=0 Set X address of RAM */ /* H=0 Set X address of RAM */
write_reg(par, 0x80); /* 7:1 1 write_reg(par, 0x80); /* 7:1 1
6-0: X[6:0] - 0x00 * 6-0: X[6:0] - 0x00
*/ */
/* H=0 Set Y address of RAM */ /* H=0 Set Y address of RAM */
write_reg(par, 0x40); /* 7:0 0 write_reg(par, 0x40); /* 7:0 0
6:1 1 * 6:1 1
2-0: Y[2:0] - 0x0 * 2-0: Y[2:0] - 0x0
*/ */
} }
static int write_vmem(struct fbtft_par *par, size_t offset, size_t len) static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
@ -100,8 +100,9 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
for (y = 0; y < HEIGHT / 8; y++) { for (y = 0; y < HEIGHT / 8; y++) {
u8 *buf = par->txbuf.buf; u8 *buf = par->txbuf.buf;
/* The display is 102x68 but the LCD is 84x48. Set /* The display is 102x68 but the LCD is 84x48.
the write pointer at the start of each row. */ * Set the write pointer at the start of each row.
*/
gpio_set_value(par->gpio.dc, 0); gpio_set_value(par->gpio.dc, 0);
write_reg(par, 0x80 | 0); write_reg(par, 0x80 | 0);
write_reg(par, 0x40 | y); write_reg(par, 0x40 | y);