Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-16-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
eb1c4b6d eca6b3dd

+2 -2
+2 -2
drivers/video/backlight/pwm_bl.c
··· 426 426 427 427 /* Not booted with device tree or no phandle link to the node */ 428 428 if (!node || !node->phandle) 429 - return FB_BLANK_UNBLANK; 429 + return BACKLIGHT_POWER_ON; 430 430 431 431 /* 432 432 * If the driver is probed from the device tree and there is a ··· 434 434 * assume that another driver will enable the backlight at the 435 435 * appropriate time. Therefore, if it is disabled, keep it so. 436 436 */ 437 - return active ? FB_BLANK_UNBLANK: FB_BLANK_POWERDOWN; 437 + return active ? BACKLIGHT_POWER_ON : BACKLIGHT_POWER_OFF; 438 438 } 439 439 440 440 static int pwm_backlight_probe(struct platform_device *pdev)