diff options
Diffstat (limited to 'include/linux/extcon.h')
-rw-r--r-- | include/linux/extcon.h | 13 |
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 | */ |
186 | extern int extcon_dev_register(struct extcon_dev *edev); | 186 | extern int extcon_dev_register(struct extcon_dev *edev); |
187 | extern void extcon_dev_unregister(struct extcon_dev *edev); | 187 | extern void extcon_dev_unregister(struct extcon_dev *edev); |
188 | extern int devm_extcon_dev_register(struct device *dev, | ||
189 | struct extcon_dev *edev); | ||
190 | extern void devm_extcon_dev_unregister(struct device *dev, | ||
191 | struct extcon_dev *edev); | ||
188 | extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name); | 192 | extern 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 | ||
255 | static inline void extcon_dev_unregister(struct extcon_dev *edev) { } | 259 | static inline void extcon_dev_unregister(struct extcon_dev *edev) { } |
256 | 260 | ||
261 | static inline int devm_extcon_dev_register(struct device *dev, | ||
262 | struct extcon_dev *edev) | ||
263 | { | ||
264 | return -EINVAL; | ||
265 | } | ||
266 | |||
267 | static inline void devm_extcon_dev_unregister(struct device *dev, | ||
268 | struct extcon_dev *edev) { } | ||
269 | |||
257 | static inline u32 extcon_get_state(struct extcon_dev *edev) | 270 | static inline u32 extcon_get_state(struct extcon_dev *edev) |
258 | { | 271 | { |
259 | return 0; | 272 | return 0; |