ANDROID: extcon: Export symbol of extcon_get_edev_name

usb-dwc3-msm module call this function which is located in
`drivers/usb/dwc3/dwc3-msm.c`.

Export function so the module can be built.

Bug: 157994070
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: Ie7fd78ea7188a96d08a8b7bf4c0e146536f20fe1
This commit is contained in:
lucaswei
2020-06-15 16:47:00 +08:00
parent 23cbf245be
commit 3d88b138f0
2 changed files with 7 additions and 0 deletions

View File

@@ -1475,6 +1475,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)
{ {

View File

@@ -309,6 +309,12 @@ static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name)
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
static inline const char *extcon_get_edev_name(struct extcon_dev *edev)
{
return NULL;
}
EXPORT_SYMBOL_GPU(extcon_get_edev_name);
static inline struct extcon_dev *extcon_find_edev_by_node(struct device_node *node) static inline struct extcon_dev *extcon_find_edev_by_node(struct device_node *node)
{ {
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);