diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-12 15:45:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-12 15:45:50 -0400 |
commit | af76004cf8b4f368583bda22d7e348e40a338b91 (patch) | |
tree | 04b90663e2d2eede2b8051a7f7ff3a97073f50e5 /drivers/video | |
parent | bae14e7a2dcb726476b5020396923a24ccc4c40b (diff) | |
parent | ab1e59b4dc0370734ab3afb8de0c10a6f5a211ad (diff) |
Merge tag 'backlight-for-linus-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight
Pull backlight fixes from Lee Jones:
"This merely contains some very basic build/run-time bug fixes"
* tag 'backlight-for-linus-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
backlight: gpio-backlight: Fix warning when the GPIO is on a I2C chip
video/backlight: s6e63m0: Fix string type mismatch
video/backlight: LP8788 needs PWM
video/backlight: LP855X needs PWM
video/pxa: LCD_CORGI needs BACKLIGHT_CLASS_DEVICE
video/backlight: LM3630A needs PWM
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/Kconfig | 8 | ||||
-rw-r--r-- | drivers/video/backlight/gpio_backlight.c | 3 | ||||
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index 5a3eb2ecb525..5d449059a556 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig | |||
@@ -29,7 +29,7 @@ if LCD_CLASS_DEVICE | |||
29 | 29 | ||
30 | config LCD_CORGI | 30 | config LCD_CORGI |
31 | tristate "LCD Panel support for SHARP corgi/spitz model" | 31 | tristate "LCD Panel support for SHARP corgi/spitz model" |
32 | depends on SPI_MASTER && PXA_SHARPSL | 32 | depends on SPI_MASTER && PXA_SHARPSL && BACKLIGHT_CLASS_DEVICE |
33 | help | 33 | help |
34 | Say y here to support the LCD panels usually found on SHARP | 34 | Say y here to support the LCD panels usually found on SHARP |
35 | corgi (C7x0) and spitz (Cxx00) models. | 35 | corgi (C7x0) and spitz (Cxx00) models. |
@@ -370,7 +370,7 @@ config BACKLIGHT_AAT2870 | |||
370 | 370 | ||
371 | config BACKLIGHT_LM3630A | 371 | config BACKLIGHT_LM3630A |
372 | tristate "Backlight Driver for LM3630A" | 372 | tristate "Backlight Driver for LM3630A" |
373 | depends on BACKLIGHT_CLASS_DEVICE && I2C | 373 | depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM |
374 | select REGMAP_I2C | 374 | select REGMAP_I2C |
375 | help | 375 | help |
376 | This supports TI LM3630A Backlight Driver | 376 | This supports TI LM3630A Backlight Driver |
@@ -386,14 +386,14 @@ config BACKLIGHT_LM3639 | |||
386 | 386 | ||
387 | config BACKLIGHT_LP855X | 387 | config BACKLIGHT_LP855X |
388 | tristate "Backlight driver for TI LP855X" | 388 | tristate "Backlight driver for TI LP855X" |
389 | depends on BACKLIGHT_CLASS_DEVICE && I2C | 389 | depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM |
390 | help | 390 | help |
391 | This supports TI LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and | 391 | This supports TI LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and |
392 | LP8557 backlight driver. | 392 | LP8557 backlight driver. |
393 | 393 | ||
394 | config BACKLIGHT_LP8788 | 394 | config BACKLIGHT_LP8788 |
395 | tristate "Backlight driver for TI LP8788 MFD" | 395 | tristate "Backlight driver for TI LP8788 MFD" |
396 | depends on BACKLIGHT_CLASS_DEVICE && MFD_LP8788 | 396 | depends on BACKLIGHT_CLASS_DEVICE && MFD_LP8788 && PWM |
397 | help | 397 | help |
398 | This supports TI LP8788 backlight driver. | 398 | This supports TI LP8788 backlight driver. |
399 | 399 | ||
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index a2eba12e1cb7..1cea68848f1a 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c | |||
@@ -38,7 +38,8 @@ static int gpio_backlight_update_status(struct backlight_device *bl) | |||
38 | bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) | 38 | bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) |
39 | brightness = 0; | 39 | brightness = 0; |
40 | 40 | ||
41 | gpio_set_value(gbl->gpio, brightness ? gbl->active : !gbl->active); | 41 | gpio_set_value_cansleep(gbl->gpio, |
42 | brightness ? gbl->active : !gbl->active); | ||
42 | 43 | ||
43 | return 0; | 44 | return 0; |
44 | } | 45 | } |
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 510a1bcf76f1..2d6d48196c6d 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c | |||
@@ -703,7 +703,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev, | |||
703 | struct s6e63m0 *lcd = dev_get_drvdata(dev); | 703 | struct s6e63m0 *lcd = dev_get_drvdata(dev); |
704 | char temp[3]; | 704 | char temp[3]; |
705 | 705 | ||
706 | sprintf(temp, "%d\n", lcd->gamma_table_count); | 706 | sprintf(temp, "%u\n", lcd->gamma_table_count); |
707 | strcpy(buf, temp); | 707 | strcpy(buf, temp); |
708 | 708 | ||
709 | return strlen(buf); | 709 | return strlen(buf); |