diff options
Diffstat (limited to 'drivers/video/backlight/ili9320.c')
-rw-r--r-- | drivers/video/backlight/ili9320.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/video/backlight/ili9320.c b/drivers/video/backlight/ili9320.c index 66cc313185ad..1235bf9defc4 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,11 +56,10 @@ 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, |
63 | struct ili9320_reg *values, | 62 | const struct ili9320_reg *values, |
64 | int nr_values) | 63 | int nr_values) |
65 | { | 64 | { |
66 | int index; | 65 | int index; |
@@ -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>"); |