]> Gentwo Git Trees - linux/.git/commitdiff
macintosh/via-pmu-backlight: Include <linux/fb.h> and <linux/of.h>
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Oct 2025 14:05:41 +0000 (15:05 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Dec 2025 10:55:07 +0000 (21:55 +1100)
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.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Closes: https://lore.kernel.org/linuxppc-dev/CA+G9fYs8fn5URQx2+s2oNxdUgZkSrdLC0P1tNBW_n-6BaBkK2Q@mail.gmail.com/
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/via-pmu-backlight.c

index 26bd9ed5e664552f0f87dbea437b903394d435bf..d91825bb0a5c6677cfe1a70d604c7649ca4b9db4 100644 (file)
@@ -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>