diff options
Diffstat (limited to 'include/linux/extcon.h')
-rw-r--r-- | include/linux/extcon.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 15361a2f2f19..36f49c405dfb 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h | |||
@@ -196,6 +196,9 @@ extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name); | |||
196 | */ | 196 | */ |
197 | extern struct extcon_dev *extcon_dev_allocate(const char **cables); | 197 | extern struct extcon_dev *extcon_dev_allocate(const char **cables); |
198 | extern void extcon_dev_free(struct extcon_dev *edev); | 198 | extern void extcon_dev_free(struct extcon_dev *edev); |
199 | extern struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, | ||
200 | const char **cables); | ||
201 | extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev); | ||
199 | 202 | ||
200 | /* | 203 | /* |
201 | * get/set/update_state access the 32b encoded state value, which represents | 204 | * get/set/update_state access the 32b encoded state value, which represents |
@@ -280,6 +283,14 @@ static inline struct extcon_dev *extcon_dev_allocate(const char **cables) | |||
280 | 283 | ||
281 | static inline void extcon_dev_free(struct extcon_dev *edev) { } | 284 | static inline void extcon_dev_free(struct extcon_dev *edev) { } |
282 | 285 | ||
286 | static inline struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, | ||
287 | const char **cables) | ||
288 | { | ||
289 | return ERR_PTR(-ENOSYS); | ||
290 | } | ||
291 | |||
292 | static inline void devm_extcon_dev_free(struct extcon_dev *edev) { } | ||
293 | |||
283 | static inline u32 extcon_get_state(struct extcon_dev *edev) | 294 | static inline u32 extcon_get_state(struct extcon_dev *edev) |
284 | { | 295 | { |
285 | return 0; | 296 | return 0; |