backlight: use of_find_backlight_by_node stub when backlight class disabled

A patch from »backlight: use of_find_backlight_by_node stub when backlight class disabled« in state Rework for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Wed, 29 Oct 2014 01:13:36 +0100

Commit-Message

Drivers may want to search for an optional backlight even when the backlight class is disabled. In this case the linker would miss the function referenced in the backlight header. Therefore use the stub function also when the backlight class is disabled. Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

include/linux/backlight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Statistics

  • 1 lines added
  • 1 lines removed

Changes

-------------------------- include/linux/backlight.h ---------------------------
index adb14a8..d9cb644 100644
@@ -157,7 +157,7 @@ struct generic_bl_info {
void (*kick_battery)(void);
};
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_BACKLIGHT_CLASS_DEVICE)
struct backlight_device *of_find_backlight_by_node(struct device_node *node);
#else
static inline struct backlight_device *
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...