Skip to content

Commit 814d3e8

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: led-backlight: 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. 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 def5831 commit 814d3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/led_bl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ static int led_bl_probe(struct platform_device *pdev)
200200
props.type = BACKLIGHT_RAW;
201201
props.max_brightness = priv->max_brightness;
202202
props.brightness = priv->default_brightness;
203-
props.power = (priv->default_brightness > 0) ? FB_BLANK_POWERDOWN :
204-
FB_BLANK_UNBLANK;
203+
props.power = (priv->default_brightness > 0) ? BACKLIGHT_POWER_OFF :
204+
BACKLIGHT_POWER_ON;
205205
priv->bl_dev = backlight_device_register(dev_name(&pdev->dev),
206206
&pdev->dev, priv, &led_bl_ops, &props);
207207
if (IS_ERR(priv->bl_dev)) {

0 commit comments

Comments
 (0)