Skip to content

Commit 26dcf62

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: aat2870-backlight: Use blacklight power constants
Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality. 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 a1cacb8 commit 26dcf62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/aat2870_bl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int aat2870_bl_probe(struct platform_device *pdev)
156156
bd->props.max_brightness = 255;
157157

158158
aat2870_bl->brightness = 0;
159-
bd->props.power = FB_BLANK_UNBLANK;
159+
bd->props.power = BACKLIGHT_POWER_ON;
160160
bd->props.brightness = bd->props.max_brightness;
161161

162162
ret = aat2870_bl_update_status(bd);
@@ -176,7 +176,7 @@ static void aat2870_bl_remove(struct platform_device *pdev)
176176
struct aat2870_bl_driver_data *aat2870_bl = platform_get_drvdata(pdev);
177177
struct backlight_device *bd = aat2870_bl->bd;
178178

179-
bd->props.power = FB_BLANK_POWERDOWN;
179+
bd->props.power = BACKLIGHT_POWER_OFF;
180180
bd->props.brightness = 0;
181181
backlight_update_status(bd);
182182
}

0 commit comments

Comments
 (0)