Skip to content

Commit 995bb10

Browse files
XNUBIAchanwoochoi
authored andcommitted
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>
1 parent 3426ad6 commit 995bb10

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/extcon/extcon.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ const char *extcon_get_edev_name(struct extcon_dev *edev)
14061406
{
14071407
return !edev ? NULL : edev->name;
14081408
}
1409+
EXPORT_SYMBOL_GPL(extcon_get_edev_name);
14091410

14101411
static int __init extcon_class_init(void)
14111412
{

‎include/linux/extcon.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev,
286286
{
287287
return ERR_PTR(-ENODEV);
288288
}
289+
290+
static inline const char *extcon_get_edev_name(struct extcon_dev *edev)
291+
{
292+
return NULL;
293+
}
289294
#endif /* CONFIG_EXTCON */
290295

291296
/*

0 commit comments

Comments
 (0)