Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mayank Rana and committed by
Chanwoo Choi
995bb109 3426ad6d

+6
+1
drivers/extcon/extcon.c
··· 1406 1406 { 1407 1407 return !edev ? NULL : edev->name; 1408 1408 } 1409 + EXPORT_SYMBOL_GPL(extcon_get_edev_name); 1409 1410 1410 1411 static int __init extcon_class_init(void) 1411 1412 {
+5
include/linux/extcon.h
··· 286 286 { 287 287 return ERR_PTR(-ENODEV); 288 288 } 289 + 290 + static inline const char *extcon_get_edev_name(struct extcon_dev *edev) 291 + { 292 + return NULL; 293 + } 289 294 #endif /* CONFIG_EXTCON */ 290 295 291 296 /*