diff options
author | Jingoo Han <jg1.han@samsung.com> | 2012-12-17 19:00:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:14 -0500 |
commit | c0b6cc499c1a214b51bac45d2c74ba66953efedc (patch) | |
tree | 165b3ec016b16e27154d455650073abfbcdea1bd | |
parent | ff10b0741236b42ec7e97b4ba2d682be53868050 (diff) |
backlight: ili9320: fix checkpatch error and warning
This patch fixes the checkpatch error and warning as below:
WARNING: please, no space before tabs
WARNING: please, no spaces at the start of a line
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
WARNING: braces {} are not necessary for single statement blocks
ERROR: code indent should use tabs where possible
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/backlight/ili9320.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/video/backlight/ili9320.c b/drivers/video/backlight/ili9320.c index 66cc313185ad..69e253b7c24b 100644 --- a/drivers/video/backlight/ili9320.c +++ b/drivers/video/backlight/ili9320.c | |||
@@ -45,7 +45,7 @@ static inline int ili9320_write_spi(struct ili9320 *ili, | |||
45 | /* second message is the data to transfer */ | 45 | /* second message is the data to transfer */ |
46 | 46 | ||
47 | data[0] = spi->id | ILI9320_SPI_DATA | ILI9320_SPI_WRITE; | 47 | data[0] = spi->id | ILI9320_SPI_DATA | ILI9320_SPI_WRITE; |
48 | data[1] = value >> 8; | 48 | data[1] = value >> 8; |
49 | data[2] = value; | 49 | data[2] = value; |
50 | 50 | ||
51 | return spi_sync(spi->dev, &spi->message); | 51 | return spi_sync(spi->dev, &spi->message); |
@@ -56,7 +56,6 @@ int ili9320_write(struct ili9320 *ili, unsigned int reg, unsigned int value) | |||
56 | dev_dbg(ili->dev, "write: reg=%02x, val=%04x\n", reg, value); | 56 | dev_dbg(ili->dev, "write: reg=%02x, val=%04x\n", reg, value); |
57 | return ili->write(ili, reg, value); | 57 | return ili->write(ili, reg, value); |
58 | } | 58 | } |
59 | |||
60 | EXPORT_SYMBOL_GPL(ili9320_write); | 59 | EXPORT_SYMBOL_GPL(ili9320_write); |
61 | 60 | ||
62 | int ili9320_write_regs(struct ili9320 *ili, | 61 | int ili9320_write_regs(struct ili9320 *ili, |
@@ -74,7 +73,6 @@ int ili9320_write_regs(struct ili9320 *ili, | |||
74 | 73 | ||
75 | return 0; | 74 | return 0; |
76 | } | 75 | } |
77 | |||
78 | EXPORT_SYMBOL_GPL(ili9320_write_regs); | 76 | EXPORT_SYMBOL_GPL(ili9320_write_regs); |
79 | 77 | ||
80 | static void ili9320_reset(struct ili9320 *lcd) | 78 | static void ili9320_reset(struct ili9320 *lcd) |
@@ -260,7 +258,6 @@ int ili9320_probe_spi(struct spi_device *spi, | |||
260 | 258 | ||
261 | return ret; | 259 | return ret; |
262 | } | 260 | } |
263 | |||
264 | EXPORT_SYMBOL_GPL(ili9320_probe_spi); | 261 | EXPORT_SYMBOL_GPL(ili9320_probe_spi); |
265 | 262 | ||
266 | int ili9320_remove(struct ili9320 *ili) | 263 | int ili9320_remove(struct ili9320 *ili) |
@@ -271,7 +268,6 @@ int ili9320_remove(struct ili9320 *ili) | |||
271 | 268 | ||
272 | return 0; | 269 | return 0; |
273 | } | 270 | } |
274 | |||
275 | EXPORT_SYMBOL_GPL(ili9320_remove); | 271 | EXPORT_SYMBOL_GPL(ili9320_remove); |
276 | 272 | ||
277 | #ifdef CONFIG_PM | 273 | #ifdef CONFIG_PM |
@@ -296,20 +292,17 @@ int ili9320_suspend(struct ili9320 *lcd, pm_message_t state) | |||
296 | 292 | ||
297 | return 0; | 293 | return 0; |
298 | } | 294 | } |
299 | |||
300 | EXPORT_SYMBOL_GPL(ili9320_suspend); | 295 | EXPORT_SYMBOL_GPL(ili9320_suspend); |
301 | 296 | ||
302 | int ili9320_resume(struct ili9320 *lcd) | 297 | int ili9320_resume(struct ili9320 *lcd) |
303 | { | 298 | { |
304 | dev_info(lcd->dev, "resuming from power state %d\n", lcd->power); | 299 | dev_info(lcd->dev, "resuming from power state %d\n", lcd->power); |
305 | 300 | ||
306 | if (lcd->platdata->suspend == ILI9320_SUSPEND_DEEP) { | 301 | if (lcd->platdata->suspend == ILI9320_SUSPEND_DEEP) |
307 | ili9320_write(lcd, ILI9320_POWER1, 0x00); | 302 | ili9320_write(lcd, ILI9320_POWER1, 0x00); |
308 | } | ||
309 | 303 | ||
310 | return ili9320_power(lcd, FB_BLANK_UNBLANK); | 304 | return ili9320_power(lcd, FB_BLANK_UNBLANK); |
311 | } | 305 | } |
312 | |||
313 | EXPORT_SYMBOL_GPL(ili9320_resume); | 306 | EXPORT_SYMBOL_GPL(ili9320_resume); |
314 | #endif | 307 | #endif |
315 | 308 | ||
@@ -318,7 +311,6 @@ void ili9320_shutdown(struct ili9320 *lcd) | |||
318 | { | 311 | { |
319 | ili9320_power(lcd, FB_BLANK_POWERDOWN); | 312 | ili9320_power(lcd, FB_BLANK_POWERDOWN); |
320 | } | 313 | } |
321 | |||
322 | EXPORT_SYMBOL_GPL(ili9320_shutdown); | 314 | EXPORT_SYMBOL_GPL(ili9320_shutdown); |
323 | 315 | ||
324 | MODULE_AUTHOR("Ben Dooks <ben-linux@fluff.org>"); | 316 | MODULE_AUTHOR("Ben Dooks <ben-linux@fluff.org>"); |