]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panel: panel-sony-acx565akm: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:17:19 +0000 (14:17 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 16 Aug 2024 07:27:52 +0000 (09:27 +0200)
Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731122311.1143153-8-tzimmermann@suse.de
drivers/gpu/drm/panel/panel-sony-acx565akm.c

index 73ba93ff00fed0a09e745686e5de95d8d98e518e..217f03569494c46eca7b69a840767e8332fb2a0c 100644 (file)
@@ -342,7 +342,7 @@ static const struct backlight_ops acx565akm_bl_ops = {
 static int acx565akm_backlight_init(struct acx565akm_panel *lcd)
 {
        struct backlight_properties props = {
-               .power = FB_BLANK_UNBLANK,
+               .power = BACKLIGHT_POWER_ON,
                .type = BACKLIGHT_RAW,
        };
        int ret;