staging: fbtft: Fix alignment to match open parenthesis
authorEva Rachel Retuya <eraretuya@gmail.com>
Fri, 12 Feb 2016 07:39:27 +0000 (15:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:22:49 +0000 (16:22 -0800)
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>
drivers/staging/fbtft/fb_ili9163.c
drivers/staging/fbtft/fb_ili9320.c
drivers/staging/fbtft/fb_ili9340.c
drivers/staging/fbtft/fb_ili9341.c

index 3f6c245..9f7c7ec 100644 (file)
@@ -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);
index 5da2764..6c6bc3d 100644 (file)
@@ -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 */
index 9b24c9e..0711121 100644 (file)
@@ -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);
 
index e8107d1..e92d771 100644 (file)
@@ -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;
 }