fbdev/chipsfb: Include <linux/backlight.h>
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>.
Reported-by Naresh Kamboju <[email protected]>
Closes https://lore.kernel.org/dri-devel/CA+G9fYsAk5TbqqxFC2W4oHLGA0CbTHMxbeq8QayFXTU75YiueA@mail.gmail.com/ open here
Signed-off-by Thomas Zimmermann <[email protected]>
Fixes 11b4eedfc87d ("fbdev: Do not include <linux/backlight.h> in header")
Cc Thomas Zimmermann <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Helge Deller <[email protected]>
--- drivers/video/fbdev/chipsfb.c | 1 + 1 file changed, 1 insertion(+)
drivers/video/fbdev/chipsfb.c +1 -0
@@ -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
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>.Reported-by Naresh Kamboju <[email protected]>Closes https://lore.kernel.org/dri-devel/CA+G9fYsAk5TbqqxFC2W4oHLGA0CbTHMxbeq8QayFXTU75YiueA@mail.gmail.com/ open hereSigned-off-by Thomas Zimmermann <[email protected]>Fixes 11b4eedfc87d ("fbdev: Do not include <linux/backlight.h> in header")Cc Thomas Zimmermann <[email protected]>Cc Jani Nikula <[email protected]>Cc Helge Deller <[email protected]>
I would've added the include in arch/powerpc/include/asm/backlight.h [1], but either way is fine by me.
Reviewed-by Jani Nikula <[email protected]>
[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@@ -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