Commit b6539a11 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Lee Jones

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: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 0f6a3256
...@@ -673,22 +673,7 @@ struct backlight_device *of_find_backlight_by_node(struct device_node *node) ...@@ -673,22 +673,7 @@ struct backlight_device *of_find_backlight_by_node(struct device_node *node)
EXPORT_SYMBOL(of_find_backlight_by_node); EXPORT_SYMBOL(of_find_backlight_by_node);
#endif #endif
/** static struct backlight_device *of_find_backlight(struct device *dev)
* of_find_backlight - Get backlight device
* @dev: Device
*
* This function looks for a property named 'backlight' on the DT node
* connected to @dev and looks up the backlight device.
*
* Call backlight_put() to drop the reference on the backlight device.
*
* Returns:
* A pointer to the backlight device if found.
* Error pointer -EPROBE_DEFER if the DT property is set, but no backlight
* device is found.
* NULL if there's no backlight property.
*/
struct backlight_device *of_find_backlight(struct device *dev)
{ {
struct backlight_device *bd = NULL; struct backlight_device *bd = NULL;
struct device_node *np; struct device_node *np;
...@@ -714,7 +699,6 @@ struct backlight_device *of_find_backlight(struct device *dev) ...@@ -714,7 +699,6 @@ struct backlight_device *of_find_backlight(struct device *dev)
return bd; return bd;
} }
EXPORT_SYMBOL(of_find_backlight);
static void devm_backlight_release(void *data) static void devm_backlight_release(void *data)
{ {
......
...@@ -477,14 +477,8 @@ of_find_backlight_by_node(struct device_node *node) ...@@ -477,14 +477,8 @@ of_find_backlight_by_node(struct device_node *node)
#endif #endif
#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) #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); struct backlight_device *devm_of_find_backlight(struct device *dev);
#else #else
static inline struct backlight_device *of_find_backlight(struct device *dev)
{
return NULL;
}
static inline struct backlight_device * static inline struct backlight_device *
devm_of_find_backlight(struct device *dev) devm_of_find_backlight(struct device *dev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment