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: Mayank Rana <mrana@codeaurora.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:

committed by
Chanwoo Choi

parent
3426ad6d40
commit
995bb10923
@@ -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,
|
|||||||
{
|
{
|
||||||
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 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user