Skip to content

Commit e263c05

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: corgi-lcd: Use backlight power constants
Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality. Only change the driver's backlight device, but leave the LCD device as-is. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 1adf982 commit e263c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/corgi_lcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ static int corgi_lcd_probe(struct spi_device *spi)
526526
return PTR_ERR(lcd->bl_dev);
527527

528528
lcd->bl_dev->props.brightness = pdata->default_intensity;
529-
lcd->bl_dev->props.power = FB_BLANK_UNBLANK;
529+
lcd->bl_dev->props.power = BACKLIGHT_POWER_ON;
530530

531531
ret = setup_gpio_backlight(lcd, pdata);
532532
if (ret)
@@ -547,7 +547,7 @@ static void corgi_lcd_remove(struct spi_device *spi)
547547
{
548548
struct corgi_lcd *lcd = spi_get_drvdata(spi);
549549

550-
lcd->bl_dev->props.power = FB_BLANK_UNBLANK;
550+
lcd->bl_dev->props.power = BACKLIGHT_POWER_ON;
551551
lcd->bl_dev->props.brightness = 0;
552552
backlight_update_status(lcd->bl_dev);
553553
corgi_lcd_set_power(lcd->lcd_dev, FB_BLANK_POWERDOWN);

0 commit comments

Comments
 (0)