mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH for 6.1/6.6] platform/loongarch: laptop: Fix build error due to backport
@ 2025-06-22 11:01 Huacai Chen
  2025-06-22 13:10 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Huacai Chen @ 2025-06-22 11:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Sasha Levin, Huacai Chen
  Cc: Xuerui Wang, stable, ziyao, linux-kernel, loongarch, Huacai Chen

In 6.1/6.6 there is no BACKLIGHT_POWER_ON definition so a build error
occurs due to recently backport:

  CC      drivers/platform/loongarch/loongson-laptop.o
drivers/platform/loongarch/loongson-laptop.c: In function 'laptop_backlight_register':
drivers/platform/loongarch/loongson-laptop.c:428:23: error: 'BACKLIGHT_POWER_ON' undeclared (first use in this function)
  428 |         props.power = BACKLIGHT_POWER_ON;
      |                       ^~~~~~~~~~~~~~~~~~

Use FB_BLANK_UNBLANK instead which has the same meaning.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/platform/loongarch/loongson-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/loongarch/loongson-laptop.c b/drivers/platform/loongarch/loongson-laptop.c
index 61b18ac206c9..5fcfa3a7970b 100644
--- a/drivers/platform/loongarch/loongson-laptop.c
+++ b/drivers/platform/loongarch/loongson-laptop.c
@@ -425,7 +425,7 @@ static int laptop_backlight_register(void)
 
 	props.max_brightness = status;
 	props.brightness = ec_get_brightness();
-	props.power = BACKLIGHT_POWER_ON;
+	props.power = FB_BLANK_UNBLANK;
 	props.type = BACKLIGHT_PLATFORM;
 
 	backlight_device_register("loongson_laptop",
-- 
2.47.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-23  8:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-22 11:01 [PATCH for 6.1/6.6] platform/loongarch: laptop: Fix build error due to backport Huacai Chen
2025-06-22 13:10 ` Greg Kroah-Hartman
2025-06-22 13:11   ` Huacai Chen
2025-06-23  6:28     ` Greg Kroah-Hartman
2025-06-23  6:36       ` Huacai Chen
2025-06-23  8:03         ` Greg Kroah-Hartman
2025-06-23  8:09           ` Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®