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

drm/panel: panel-orisetech-otm8009a: 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: 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-5-tzimmermann@suse.de

+2 -2
+2 -2
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
··· 389 389 return -ENXIO; 390 390 } 391 391 392 - if (bd->props.power <= FB_BLANK_NORMAL) { 392 + if (bd->props.power <= BACKLIGHT_POWER_REDUCED) { 393 393 /* Power on the backlight with the requested brightness 394 394 * Note We can not use mipi_dsi_dcs_set_display_brightness() 395 395 * as otm8009a driver support only 8-bit brightness (1 param). ··· 465 465 466 466 ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX; 467 467 ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT; 468 - ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; 468 + ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF; 469 469 ctx->bl_dev->props.type = BACKLIGHT_RAW; 470 470 471 471 drm_panel_add(&ctx->panel);