Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d88b138 authored by lucaswei's avatar lucaswei
Browse files

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: default avatarlucaswei <lucaswei@google.com>
Change-Id: Ie7fd78ea7188a96d08a8b7bf4c0e146536f20fe1
parent 23cbf245
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1475,6 +1475,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)
{
+6 −0
Original line number Diff line number Diff line
@@ -309,6 +309,12 @@ static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name)
	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)
{
	return ERR_PTR(-ENODEV);