Skip to content

Commit eb1c4b6

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: pwm-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 eca6b3d commit eb1c4b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/pwm_bl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ static int pwm_backlight_initial_power_state(const struct pwm_bl_data *pb)
426426

427427
/* Not booted with device tree or no phandle link to the node */
428428
if (!node || !node->phandle)
429-
return FB_BLANK_UNBLANK;
429+
return BACKLIGHT_POWER_ON;
430430

431431
/*
432432
* If the driver is probed from the device tree and there is a
433433
* phandle link pointing to the backlight node, it is safe to
434434
* assume that another driver will enable the backlight at the
435435
* appropriate time. Therefore, if it is disabled, keep it so.
436436
*/
437-
return active ? FB_BLANK_UNBLANK: FB_BLANK_POWERDOWN;
437+
return active ? BACKLIGHT_POWER_ON : BACKLIGHT_POWER_OFF;
438438
}
439439

440440
static int pwm_backlight_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)