Skip to contentSkip to conversation

powerpc: Fix backlight include fallout

PATCH In review Thomas Zimmermann 2 participants 4 messages Oct 27, 2025 – Oct 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover powerpc: Fix backlight include fallout

Fix the fallout from a recent cleanup of the backlight header.

Thomas Zimmermann (2):
powermac: backlight: Include <linux/of.h> macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>

 arch/powerpc/platforms/powermac/backlight.c | 1 +
 drivers/macintosh/via-pmu-backlight.c       | 2 ++
 2 files changed, 3 insertions(+)
Signature · 1 line
2.51.1
#1 lore raw

PATCH 1/2 powermac: backlight: Include <linux/of.h>

Include <linux/of.h> to avoid dependency on backlight header to include it. Declares of_find_node_by_name(), of_property_match_string() and of_node_put().

Fixes 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Cc Thomas Zimmermann <[email protected]>
Cc Daniel Thompson (RISCstar) <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
---
 arch/powerpc/platforms/powermac/backlight.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/backlight.c +1 -0
index 79741370c40c..1796327955c6 100644
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/backlight.h>
 #include <linux/adb.h>
+#include <linux/of.h>
 #include <linux/pmu.h>
 #include <linux/atomic.h>
 #include <linux/export.h>
Signature · 1 line
2.51.1
#2 lore raw

PATCH 2/2 macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>

In reply to Thomas Zimmermann

Include <linux/fb.h> and <linux/of.h> to avoid dependency on backlight header to include them. Declares of_machine_is_compatible() and defines FB_BACKLIGHT_MAX.

Fixes 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Cc Thomas Zimmermann <[email protected]>
Cc Daniel Thompson (RISCstar) <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
---
 drivers/macintosh/via-pmu-backlight.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/macintosh/via-pmu-backlight.c +2 -0
index 26bd9ed5e664..d91825bb0a5c 100644
@@ -11,6 +11,8 @@
 #include <asm/ptrace.h>
 #include <linux/adb.h>
 #include <linux/backlight.h>
+#include <linux/fb.h>
+#include <linux/of.h>
 #include <linux/pmu.h>
 #include <asm/backlight.h>
 
Signature · 1 line
2.51.1
Reviewed-by on the v1 series
#3 lore raw
In reply to Thomas Zimmermann
Quoted 9 lines · Thomas Zimmermann

Fix the fallout from a recent cleanup of the backlight header.

Thomas Zimmermann (2):
powermac: backlight: Include <linux/of.h> macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>

 arch/powerpc/platforms/powermac/backlight.c | 1 +
 drivers/macintosh/via-pmu-backlight.c       | 2 ++
 2 files changed, 3 insertions(+)

I noticed that both these directory trees are orphaned.

Anyone have any thoughts about what tree these should be delivered via?

Either way, FWIW:

Daniel.