Skip to content

Commit 246da2b

Browse files
tdzlag-linaro
authored andcommitted
backlight: rave-sp: Include <linux/of.h> and <linux/mod_devicetable.h>
Include <linux/of.h> to declare struct device_node and include <linux/mod_devicetable.h> to declare struct of_device_id. Avoids dependency on backlight header to include it. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: "Daniel Thompson (RISCstar)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent b38ed7c commit 246da2b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/video/backlight/rave-sp-backlight.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010
#include <linux/backlight.h>
1111
#include <linux/kernel.h>
12+
#include <linux/mod_devicetable.h>
1213
#include <linux/module.h>
1314
#include <linux/mfd/rave-sp.h>
15+
#include <linux/of.h>
1416
#include <linux/platform_device.h>
1517

1618
#define RAVE_SP_BACKLIGHT_LCD_EN BIT(7)

0 commit comments

Comments
 (0)