[PATCH 0/2] Backlight control improvements for loongson_laptop

Yao Zi posted 2 patches 8 months, 2 weeks ago
There is a newer version of this series
drivers/platform/loongarch/loongson-laptop.c | 55 +++++++-------------
1 file changed, 20 insertions(+), 35 deletions(-)
[PATCH 0/2] Backlight control improvements for loongson_laptop
Posted by Yao Zi 8 months, 2 weeks ago
I've observed strange screen brightness changes on TongFang L860-T2
3A5000 laptop after resumption. It's found that a brightness value that
doesn't match the hardware state before suspension is "restored" for the
EC, causing the strange behavior.

This series fixes the behavior by obtaining EC's brightness setting
instead of using a constant as current brightness on probe.

While digging through the code, I've found some unused,
power-control-related functions in the driver. They're cleaned up and
used to support power control of backlight in the second patch as well.

Yao Zi (2):
  platform/loongarch: laptop: Get brightness setting from EC on probe
  platform/loongarch: laptop: Support backlight power control

 drivers/platform/loongarch/loongson-laptop.c | 55 +++++++-------------
 1 file changed, 20 insertions(+), 35 deletions(-)

-- 
2.49.0