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

drm/panel: panel-novatak-nt35510: 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 or semantics.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
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-4-tzimmermann@suse.de

+1 -1
+1 -1
drivers/gpu/drm/panel/panel-novatek-nt35510.c
··· 1166 1166 bl->props.brightness = nt->conf->wrdisbv; 1167 1167 else 1168 1168 bl->props.brightness = 255; 1169 - bl->props.power = FB_BLANK_POWERDOWN; 1169 + bl->props.power = BACKLIGHT_POWER_OFF; 1170 1170 nt->panel.backlight = bl; 1171 1171 } 1172 1172