mirror of https://gitee.com/openkylin/linux.git
staging: fbtft: Fix alignment to match open parenthesis
Fix alignment issues by properly indenting function parameters in accordance to the kernel coding style. Checkpatch pointed out this issue. CHECK: Alignment should match open parenthesis Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3a334ea510
commit
f07e89ce1e
|
@ -122,7 +122,7 @@ 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)
|
||||
int xe, int ye)
|
||||
{
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
|
@ -215,22 +215,21 @@ static int gamma_adj(struct fbtft_par *par, unsigned long *curves)
|
|||
CURVE(i, j) &= mask[i * par->gamma.num_values + j];
|
||||
|
||||
write_reg(par, CMD_PGAMMAC,
|
||||
CURVE(0, 0),
|
||||
CURVE(0, 1),
|
||||
CURVE(0, 2),
|
||||
CURVE(0, 3),
|
||||
CURVE(0, 4),
|
||||
CURVE(0, 5),
|
||||
CURVE(0, 6),
|
||||
(CURVE(0, 7) << 4) | CURVE(0, 8),
|
||||
CURVE(0, 9),
|
||||
CURVE(0, 10),
|
||||
CURVE(0, 11),
|
||||
CURVE(0, 12),
|
||||
CURVE(0, 13),
|
||||
CURVE(0, 14),
|
||||
CURVE(0, 15)
|
||||
);
|
||||
CURVE(0, 0),
|
||||
CURVE(0, 1),
|
||||
CURVE(0, 2),
|
||||
CURVE(0, 3),
|
||||
CURVE(0, 4),
|
||||
CURVE(0, 5),
|
||||
CURVE(0, 6),
|
||||
(CURVE(0, 7) << 4) | CURVE(0, 8),
|
||||
CURVE(0, 9),
|
||||
CURVE(0, 10),
|
||||
CURVE(0, 11),
|
||||
CURVE(0, 12),
|
||||
CURVE(0, 13),
|
||||
CURVE(0, 14),
|
||||
CURVE(0, 15));
|
||||
|
||||
/* Write Data to GRAM mode */
|
||||
write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
|
||||
|
|
|
@ -47,10 +47,10 @@ static int init_display(struct fbtft_par *par)
|
|||
|
||||
devcode = read_devicecode(par);
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "Device code: 0x%04X\n",
|
||||
devcode);
|
||||
devcode);
|
||||
if ((devcode != 0x0000) && (devcode != 0x9320))
|
||||
dev_warn(par->info->device,
|
||||
"Unrecognized Device code: 0x%04X (expected 0x9320)\n",
|
||||
"Unrecognized Device code: 0x%04X (expected 0x9320)\n",
|
||||
devcode);
|
||||
|
||||
/* Initialization sequence from ILI9320 Application Notes */
|
||||
|
|
|
@ -71,13 +71,13 @@ static int init_display(struct fbtft_par *par)
|
|||
|
||||
/* Positive Gamma Correction */
|
||||
write_reg(par, 0xE0,
|
||||
0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, 0x4E, 0xF1,
|
||||
0x37, 0x07, 0x10, 0x03, 0x0E, 0x09, 0x00);
|
||||
0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, 0x4E, 0xF1,
|
||||
0x37, 0x07, 0x10, 0x03, 0x0E, 0x09, 0x00);
|
||||
|
||||
/* Negative Gamma Correction */
|
||||
write_reg(par, 0xE1,
|
||||
0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, 0x31, 0xC1,
|
||||
0x48, 0x08, 0x0F, 0x0C, 0x31, 0x36, 0x0F);
|
||||
0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, 0x31, 0xC1,
|
||||
0x48, 0x08, 0x0F, 0x0C, 0x31, 0x36, 0x0F);
|
||||
|
||||
write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
|
||||
|
||||
|
|
|
@ -127,11 +127,11 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
|||
|
||||
for (i = 0; i < par->gamma.num_curves; i++)
|
||||
write_reg(par, 0xE0 + i,
|
||||
CURVE(i, 0), CURVE(i, 1), CURVE(i, 2),
|
||||
CURVE(i, 3), CURVE(i, 4), CURVE(i, 5),
|
||||
CURVE(i, 6), CURVE(i, 7), CURVE(i, 8),
|
||||
CURVE(i, 9), CURVE(i, 10), CURVE(i, 11),
|
||||
CURVE(i, 12), CURVE(i, 13), CURVE(i, 14));
|
||||
CURVE(i, 0), CURVE(i, 1), CURVE(i, 2),
|
||||
CURVE(i, 3), CURVE(i, 4), CURVE(i, 5),
|
||||
CURVE(i, 6), CURVE(i, 7), CURVE(i, 8),
|
||||
CURVE(i, 9), CURVE(i, 10), CURVE(i, 11),
|
||||
CURVE(i, 12), CURVE(i, 13), CURVE(i, 14));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue