aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/extcon.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/extcon.h')
-rw-r--r--include/linux/extcon.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index f488145bb2d4..548447be2d8f 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -185,6 +185,10 @@ struct extcon_specific_cable_nb {
185 */ 185 */
186extern int extcon_dev_register(struct extcon_dev *edev); 186extern int extcon_dev_register(struct extcon_dev *edev);
187extern void extcon_dev_unregister(struct extcon_dev *edev); 187extern void extcon_dev_unregister(struct extcon_dev *edev);
188extern int devm_extcon_dev_register(struct device *dev,
189 struct extcon_dev *edev);
190extern void devm_extcon_dev_unregister(struct device *dev,
191 struct extcon_dev *edev);
188extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name); 192extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name);
189 193
190/* 194/*
@@ -254,6 +258,15 @@ static inline int extcon_dev_register(struct extcon_dev *edev)
254 258
255static inline void extcon_dev_unregister(struct extcon_dev *edev) { } 259static inline void extcon_dev_unregister(struct extcon_dev *edev) { }
256 260
261static inline int devm_extcon_dev_register(struct device *dev,
262 struct extcon_dev *edev)
263{
264 return -EINVAL;
265}
266
267static inline void devm_extcon_dev_unregister(struct device *dev,
268 struct extcon_dev *edev) { }
269
257static inline u32 extcon_get_state(struct extcon_dev *edev) 270static inline u32 extcon_get_state(struct extcon_dev *edev)
258{ 271{
259 return 0; 272 return 0;