Commit 995bb109 authored by Mayank Rana's avatar Mayank Rana Committed by Chanwoo Choi

extcon: Mark extcon_get_edev_name() function as exported symbol

extcon_get_edev_name() function provides client driver to request
extcon dev's name. If extcon driver and client driver are compiled
as loadable modules, extcon_get_edev_name() function symbol is not
visible to client driver. Hence mark extcon_find_edev_name() function
as exported symbol.
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 3426ad6d
...@@ -1406,6 +1406,7 @@ const char *extcon_get_edev_name(struct extcon_dev *edev) ...@@ -1406,6 +1406,7 @@ const char *extcon_get_edev_name(struct extcon_dev *edev)
{ {
return !edev ? NULL : edev->name; return !edev ? NULL : edev->name;
} }
EXPORT_SYMBOL_GPL(extcon_get_edev_name);
static int __init extcon_class_init(void) static int __init extcon_class_init(void)
{ {
......
...@@ -286,6 +286,11 @@ static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, ...@@ -286,6 +286,11 @@ static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev,
{ {
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
static inline const char *extcon_get_edev_name(struct extcon_dev *edev)
{
return NULL;
}
#endif /* CONFIG_EXTCON */ #endif /* CONFIG_EXTCON */
/* /*
......
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