Skip to contentSkip to conversation

fbdev/chipsfb: Include <linux/backlight.h>

PATCH Superseded Thomas Zimmermann 2 participants 2 messages Mar 4, 2024 Framebuffer layer

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev/chipsfb: Include <linux/backlight.h>

Fix builds with CONFIG_PMAC_BACKLIGHT=y. The include statement for the backlight header has recently been removed from <linux/fb.h>.

---
 drivers/video/fbdev/chipsfb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/chipsfb.c +1 -0
index b80711f13df8a..b16a905588fed 100644
@@ -15,6 +15,7 @@
  */
 
 #include <linux/aperture.h>
+#include <linux/backlight.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
Signature · 1 line
2.44.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Thomas Zimmermann

Fix builds with CONFIG_PMAC_BACKLIGHT=y. The include statement for the backlight header has recently been removed from <linux/fb.h>.

I would've added the include in arch/powerpc/include/asm/backlight.h [1], but either way is fine by me.

[1] https://lore.kernel.org/r/[email protected]

Quoted 16 lines
---
 drivers/video/fbdev/chipsfb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/chipsfb.c +1 -0
index b80711f13df8a..b16a905588fed 100644
@@ -15,6 +15,7 @@
  */
 
 #include <linux/aperture.h>
+#include <linux/backlight.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
Signature · 1 line
Jani Nikula, Intel