aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/backlight.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index ddc9bade4fb2..2baab6f3861d 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -217,11 +217,18 @@ of_find_backlight_by_node(struct device_node *node)
217 217
218#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) 218#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)
219struct backlight_device *of_find_backlight(struct device *dev); 219struct backlight_device *of_find_backlight(struct device *dev);
220struct backlight_device *devm_of_find_backlight(struct device *dev);
220#else 221#else
221static inline struct backlight_device *of_find_backlight(struct device *dev) 222static inline struct backlight_device *of_find_backlight(struct device *dev)
222{ 223{
223 return NULL; 224 return NULL;
224} 225}
226
227static inline struct backlight_device *
228devm_of_find_backlight(struct device *dev)
229{
230 return NULL;
231}
225#endif 232#endif
226 233
227#endif 234#endif