aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-04-15 00:57:51 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2015-05-19 03:39:04 -0400
commit707d7550875a9bd245ce5f1077d2d2cb44eab218 (patch)
tree22476cb6161ab33949c852836fb1329c65f77ac9 /include/linux
parent71c3ffa5d23af0554c27010cf12710da9bf85950 (diff)
extcon: Add extcon_get_edev_name() API to get the extcon device name
This patch adds the extcon_get_edev_name() API to get the name of extcon device because all information inclued in the structure extcon_dev should be accessed by extcon core API instead of directly accessing the data. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/extcon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 36f49c405dfb..e2cf6254c86a 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -259,6 +259,10 @@ extern int extcon_unregister_notifier(struct extcon_dev *edev,
259 * This function use phandle of devicetree to get extcon device directly. 259 * This function use phandle of devicetree to get extcon device directly.
260 */ 260 */
261extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index); 261extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index);
262
263/* Following API to get information of extcon device */
264extern const char *extcon_get_edev_name(struct extcon_dev *edev);
265
262#else /* CONFIG_EXTCON */ 266#else /* CONFIG_EXTCON */
263static inline int extcon_dev_register(struct extcon_dev *edev) 267static inline int extcon_dev_register(struct extcon_dev *edev)
264{ 268{