Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: ktd2801: Include <linux/mod_devicetable.h>

Include <linux/mod_devicetable.h> to declare struct of_device_id.
Avoids dependency on backlight header to include it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Nick Chan <towinchenmi@gmail.com>
Reviewed-by: "Daniel Thompson (RISCstar)" <danielt@kernel.org>
Acked-by: Duje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20250715122643.137027-12-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
5f60004f ce4bb1a2

+1
+1
drivers/video/backlight/ktd2801-backlight.c
··· 6 6 #include <linux/backlight.h> 7 7 #include <linux/gpio/consumer.h> 8 8 #include <linux/leds-expresswire.h> 9 + #include <linux/mod_devicetable.h> 9 10 #include <linux/platform_device.h> 10 11 #include <linux/property.h> 11 12