From: Thomas Zimmermann <tzimmermann@suse.de>
To: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
airlied@gmail.com, daniel@ffwll.ch
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
Thomas Zimmermann <tzimmermann@suse.de>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <quic_jesszhan@quicinc.com>
Subject: [PATCH 4/9] drm/panel: panel-orisetech-otm8009a: Use backlight power constants
Date: Wed, 31 Jul 2024 14:17:16 +0200 [thread overview]
Message-ID: <20240731122311.1143153-5-tzimmermann@suse.de> (raw)
In-Reply-To: <20240731122311.1143153-1-tzimmermann@suse.de>
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>
---
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
index 93183f30d7d6..a9b5dad70bc1 100644
--- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
+++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
@@ -389,7 +389,7 @@ static int otm8009a_backlight_update_status(struct backlight_device *bd)
return -ENXIO;
}
- if (bd->props.power <= FB_BLANK_NORMAL) {
+ if (bd->props.power <= BACKLIGHT_POWER_REDUCED) {
/* Power on the backlight with the requested brightness
* Note We can not use mipi_dsi_dcs_set_display_brightness()
* as otm8009a driver support only 8-bit brightness (1 param).
@@ -465,7 +465,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX;
ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT;
- ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
+ ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
ctx->bl_dev->props.type = BACKLIGHT_RAW;
drm_panel_add(&ctx->panel);
--
2.45.2
next prev parent reply other threads:[~2024-07-31 12:23 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 12:17 [PATCH 0/9] drm: Use backlight power constants Thomas Zimmermann
2024-07-31 12:17 ` [PATCH 1/9] drm/amdgpu: " Thomas Zimmermann
2024-08-05 19:00 ` Deucher, Alexander
2024-08-06 7:06 ` Thomas Zimmermann
2024-08-07 19:47 ` Alex Deucher
2024-08-08 5:19 ` Thomas Zimmermann
2024-08-08 13:19 ` Alex Deucher
2024-07-31 12:17 ` [PATCH 2/9] drm/i915: " Thomas Zimmermann
2024-07-31 12:56 ` Jani Nikula
2024-07-31 13:00 ` Thomas Zimmermann
2024-08-01 11:52 ` Jani Nikula
2024-07-31 12:17 ` [PATCH 3/9] drm/panel: panel-novatak-nt35510: " Thomas Zimmermann
2024-08-01 22:37 ` Jessica Zhang
2024-08-23 15:40 ` Linus Walleij
2024-07-31 12:17 ` Thomas Zimmermann [this message]
2024-08-01 22:41 ` [PATCH 4/9] drm/panel: panel-orisetech-otm8009a: " Jessica Zhang
2024-07-31 12:17 ` [PATCH 5/9] drm/panel: panel-samsung-s6e63j0x03: " Thomas Zimmermann
2024-08-01 22:41 ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 6/9] drm/panel: panel-samsung-s6e3ha2: " Thomas Zimmermann
2024-08-01 22:46 ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 7/9] drm/panel: panel-sony-acx565akm: " Thomas Zimmermann
2024-08-01 22:46 ` Jessica Zhang
2024-07-31 12:17 ` [PATCH 8/9] drm/radeon: " Thomas Zimmermann
2024-07-31 12:17 ` [PATCH 9/9] drm/tilcdc: " Thomas Zimmermann
2024-08-15 7:59 ` Thomas Zimmermann
2024-08-15 8:07 ` Tomi Valkeinen
2024-08-15 8:08 ` Thomas Zimmermann
2024-07-31 13:02 ` ✗ Fi.CI.SPARSE: warning for drm: " Patchwork
2024-07-31 13:11 ` ✓ Fi.CI.BAT: success " Patchwork
2024-08-01 5:24 ` ✓ Fi.CI.IGT: " Patchwork
2024-08-02 7:00 ` [PATCH 9/9] drm/tilcdc: " jyri.sarha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240731122311.1143153-5-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_jesszhan@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox