diff options
| author | Junjie Cao <junjie.cao@linux.dev> | 2026-08-04 11:02:55 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-08-12 13:15:00 +0100 |
| commit | fbf8b5d251e8b4e1b01c591be313c63cb9e1526a (patch) | |
| tree | a94ead20e06d6508df022371348817e6a9f6a00f | |
| parent | 3d142b19b09ea62d6e9a33d46d1b858b3ad05707 (diff) | |
| download | linux-stable-fbf8b5d251e8b4e1b01c591be313c63cb9e1526a.tar.gz linux-stable-fbf8b5d251e8b4e1b01c591be313c63cb9e1526a.zip | |
backlight: aw99706: Honor the core blank state in update_status()
update_status() passes props.brightness straight to the hardware and
ignores the power/blank state tracked by the core. Writing 4 to the
bl_power sysfs attribute or blanking the framebuffer therefore leaves
the backlight lit.
Use backlight_get_brightness(), which returns 0 while the device is
blanked.
Fixes: 147b38a5ad06 ("backlight: aw99706: Add support for Awinic AW99706 backlight")
Cc: stable@vger.kernel.org
Signed-off-by: Junjie Cao <junjie.cao@linux.dev>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Link: https://patch.msgid.link/20260804030255.1934470-4-junjie.cao@intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
| -rw-r--r-- | drivers/video/backlight/aw99706.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/aw99706.c b/drivers/video/backlight/aw99706.c index 6ec49b6cb14c..c4a66b59ecf1 100644 --- a/drivers/video/backlight/aw99706.c +++ b/drivers/video/backlight/aw99706.c @@ -340,7 +340,7 @@ static int aw99706_bl_update_status(struct backlight_device *bl) { struct aw99706_device *aw = bl_get_data(bl); - return aw99706_update_brightness(aw, bl->props.brightness); + return aw99706_update_brightness(aw, backlight_get_brightness(bl)); } static const struct backlight_ops aw99706_bl_ops = { |
