]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: olpc_dcon: olpc_dcon: Fix open parenthesis alignment.
authorEmmanuil Chatzipetru <chatzi.emanuel@gmail.com>
Sun, 8 Jan 2017 13:37:04 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:40:15 +0000 (17:40 +0100)
This issue is caught by checkpatch.pl and is related to the following
warning:
- CHECK: Alignment should match open parenthesis

Signed-off-by: Emmanuil Chatzipetru <chatzi.emanuel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index f45b2ef05f481fce35c12e62ee4b792f77ae2edf..dcf89326580c3c5762886061e8d51ff8c31a1ed2 100644 (file)
@@ -81,7 +81,7 @@ static int dcon_hw_init(struct dcon_priv *dcon, int is_init)
 
        if (ver < 0xdc02) {
                dev_err(&dcon->client->dev,
-                               "DCON v1 is unsupported, giving up..\n");
+                       "DCON v1 is unsupported, giving up..\n");
                rc = -ENODEV;
                goto err;
        }
@@ -90,7 +90,7 @@ static int dcon_hw_init(struct dcon_priv *dcon, int is_init)
        dcon_write(dcon, 0x3a, 0xc040);
        dcon_write(dcon, DCON_REG_MEM_OPT_A, 0x0000);  /* clear option bits */
        dcon_write(dcon, DCON_REG_MEM_OPT_A,
-                               MEM_DLL_CLOCK_DELAY | MEM_POWER_DOWN);
+                  MEM_DLL_CLOCK_DELAY | MEM_POWER_DOWN);
        dcon_write(dcon, DCON_REG_MEM_OPT_B, MEM_SOFT_RESET);
 
        /* Colour swizzle, AA, no passthrough, backlight */
@@ -261,14 +261,14 @@ static bool dcon_blank_fb(struct dcon_priv *dcon, bool blank)
 
        dcon->ignore_fb_events = true;
        err = fb_blank(dcon->fbinfo,
-                       blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK);
+                      blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK);
        dcon->ignore_fb_events = false;
        unlock_fb_info(dcon->fbinfo);
        console_unlock();
 
        if (err) {
                dev_err(&dcon->client->dev, "couldn't %sblank framebuffer\n",
-                               blank ? "" : "un");
+                       blank ? "" : "un");
                return false;
        }
        return true;
@@ -293,7 +293,7 @@ static void dcon_source_switch(struct work_struct *work)
                pr_info("dcon_source_switch to CPU\n");
                /* Enable the scanline interrupt bit */
                if (dcon_write(dcon, DCON_REG_MODE,
-                               dcon->disp_mode | MODE_SCAN_INT))
+                              dcon->disp_mode | MODE_SCAN_INT))
                        pr_err("couldn't enable scanline interrupt!\n");
                else
                        /* Wait up to one second for the scanline interrupt */
@@ -646,7 +646,7 @@ static int dcon_probe(struct i2c_client *client, const struct i2c_device_id *id)
                dcon, &dcon_bl_ops, &dcon_bl_props);
        if (IS_ERR(dcon->bl_dev)) {
                dev_err(&client->dev, "cannot register backlight dev (%ld)\n",
-                               PTR_ERR(dcon->bl_dev));
+                       PTR_ERR(dcon->bl_dev));
                dcon->bl_dev = NULL;
        }