summaryrefslogtreecommitdiff
path: root/include/linux/backlight.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2020-07-19 11:07:43 +0300
committerLee Jones <lee.jones@linaro.org>2020-07-20 12:27:11 +0300
commitb6539a11e807c531e51ff7ad9a25c3a1b6ff7340 (patch)
tree123b95df28371835df8b68a0f4f18dedabb91487 /include/linux/backlight.h
parent0f6a3256fd810eeca9c56cccafee46359d995138 (diff)
downloadlinux-b6539a11e807c531e51ff7ad9a25c3a1b6ff7340.tar.xz
backlight: backlight: Make of_find_backlight static
There are no external users of of_find_backlight, as they have all changed to use the managed version. Make of_find_backlight static to prevent new external users. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/backlight.h')
-rw-r--r--include/linux/backlight.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index 64f91324c911..614653e07e3a 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -477,14 +477,8 @@ of_find_backlight_by_node(struct device_node *node)
#endif
#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)
-struct backlight_device *of_find_backlight(struct device *dev);
struct backlight_device *devm_of_find_backlight(struct device *dev);
#else
-static inline struct backlight_device *of_find_backlight(struct device *dev)
-{
- return NULL;
-}
-
static inline struct backlight_device *
devm_of_find_backlight(struct device *dev)
{