Merge "BACKPORT: extcon: Mark extcon_get_edev_name() function as exported symbol"

This commit is contained in:
qctecmdr 2020-04-02 05:43:11 -07:00 • committed by Gerrit - the friendly Code Review server
commit 114a282b28
2 changed files with 6 additions and 0 deletions

View file

@ -1406,6 +1406,7 @@ const char *extcon_get_edev_name(struct extcon_dev *edev)
{
return !edev ? NULL : edev->name;
}
EXPORT_SYMBOL_GPL(extcon_get_edev_name);
static int __init extcon_class_init(void)
{

View file

@ -286,6 +286,11 @@ static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev,
{
return ERR_PTR(-ENODEV);
}
static inline const char *extcon_get_edev_name(struct extcon_dev *edev)
{
return NULL;
}
#endif /* CONFIG_EXTCON */
/*