Commit 08851261 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

backlight: corgi_lcd: fix checkpatch error and warning

This patch fixes the checkpatch error and warning as below:

  WARNING: please, no space before tabs
  WARNING: quoted string split across lines
  ERROR: space required before the open parenthesis '('
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 16a63149
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
* Based on Sharp's 2.4 Backlight Driver * Based on Sharp's 2.4 Backlight Driver
* *
* Copyright (c) 2008 Marvell International Ltd. * Copyright (c) 2008 Marvell International Ltd.
* Converted to SPI device based LCD/Backlight device driver * Converted to SPI device based LCD/Backlight device driver
* by Eric Miao <eric.miao@marvell.com> * by Eric Miao <eric.miao@marvell.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -192,7 +192,7 @@ static void lcdtg_set_phadadj(struct corgi_lcd *lcd, int mode) ...@@ -192,7 +192,7 @@ static void lcdtg_set_phadadj(struct corgi_lcd *lcd, int mode)
{ {
int adj; int adj;
switch(mode) { switch (mode) {
case CORGI_LCD_MODE_VGA: case CORGI_LCD_MODE_VGA:
/* Setting for VGA */ /* Setting for VGA */
adj = sharpsl_param.phadadj; adj = sharpsl_param.phadadj;
...@@ -495,8 +495,9 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd, ...@@ -495,8 +495,9 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd,
err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_on, err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_on,
"BL_ON"); "BL_ON");
if (err) { if (err) {
dev_err(&spi->dev, "failed to request GPIO%d for " dev_err(&spi->dev,
"backlight_on\n", pdata->gpio_backlight_on); "failed to request GPIO%d for backlight_on\n",
pdata->gpio_backlight_on);
return err; return err;
} }
...@@ -508,8 +509,9 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd, ...@@ -508,8 +509,9 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd,
err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_cont, err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_cont,
"BL_CONT"); "BL_CONT");
if (err) { if (err) {
dev_err(&spi->dev, "failed to request GPIO%d for " dev_err(&spi->dev,
"backlight_cont\n", pdata->gpio_backlight_cont); "failed to request GPIO%d for backlight_cont\n",
pdata->gpio_backlight_cont);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment