diff options
Diffstat (limited to 'include/linux/extcon.h')
-rw-r--r-- | include/linux/extcon.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h index cdd40147765..7443a560c9d 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h | |||
@@ -30,19 +30,19 @@ | |||
30 | 30 | ||
31 | /* | 31 | /* |
32 | * The standard cable name is to help support general notifier | 32 | * The standard cable name is to help support general notifier |
33 | * and notifee device drivers to share the common names. | 33 | * and notifiee device drivers to share the common names. |
34 | * Please use standard cable names unless your notifier device has | 34 | * Please use standard cable names unless your notifier device has |
35 | * a very unique and abnormal cable or | 35 | * a very unique and abnormal cable or |
36 | * the cable type is supposed to be used with only one unique | 36 | * the cable type is supposed to be used with only one unique |
37 | * pair of notifier/notifee devices. | 37 | * pair of notifier/notifiee devices. |
38 | * | 38 | * |
39 | * Please add any other "standard" cables used with extcon dev. | 39 | * Please add any other "standard" cables used with extcon dev. |
40 | * | 40 | * |
41 | * You may add a dot and number to specify version or specification | 41 | * You may add a dot and number to specify version or specification |
42 | * of the specific cable if it is required. (e.g., "Fast-charger.18" | 42 | * of the specific cable if it is required. (e.g., "Fast-charger.18" |
43 | * and "Fast-charger.10" for 1.8A and 1.0A chargers) | 43 | * and "Fast-charger.10" for 1.8A and 1.0A chargers) |
44 | * However, the notifee and notifier should be able to handle such | 44 | * However, the notifiee and notifier should be able to handle such |
45 | * string and if the notifee can negotiate the protocol or idenify, | 45 | * string and if the notifiee can negotiate the protocol or identify, |
46 | * you don't need such convention. This convention is helpful when | 46 | * you don't need such convention. This convention is helpful when |
47 | * notifier can distinguish but notifiee cannot. | 47 | * notifier can distinguish but notifiee cannot. |
48 | */ | 48 | */ |
@@ -76,7 +76,7 @@ struct extcon_cable; | |||
76 | * struct extcon_dev - An extcon device represents one external connector. | 76 | * struct extcon_dev - An extcon device represents one external connector. |
77 | * @name The name of this extcon device. Parent device name is used | 77 | * @name The name of this extcon device. Parent device name is used |
78 | * if NULL. | 78 | * if NULL. |
79 | * @supported_cable Array of supported cable name ending with NULL. | 79 | * @supported_cable Array of supported cable names ending with NULL. |
80 | * If supported_cable is NULL, cable name related APIs | 80 | * If supported_cable is NULL, cable name related APIs |
81 | * are disabled. | 81 | * are disabled. |
82 | * @mutually_exclusive Array of mutually exclusive set of cables that cannot | 82 | * @mutually_exclusive Array of mutually exclusive set of cables that cannot |
@@ -95,7 +95,7 @@ struct extcon_cable; | |||
95 | * @state Attach/detach state of this extcon. Do not provide at | 95 | * @state Attach/detach state of this extcon. Do not provide at |
96 | * register-time | 96 | * register-time |
97 | * @nh Notifier for the state change events from this extcon | 97 | * @nh Notifier for the state change events from this extcon |
98 | * @entry To support list of extcon devices so that uses can search | 98 | * @entry To support list of extcon devices so that users can search |
99 | * for extcon devices based on the extcon name. | 99 | * for extcon devices based on the extcon name. |
100 | * @lock | 100 | * @lock |
101 | * @max_supported Internal value to store the number of cables. | 101 | * @max_supported Internal value to store the number of cables. |
@@ -199,7 +199,7 @@ extern int extcon_update_state(struct extcon_dev *edev, u32 mask, u32 state); | |||
199 | /* | 199 | /* |
200 | * get/set_cable_state access each bit of the 32b encoded state value. | 200 | * get/set_cable_state access each bit of the 32b encoded state value. |
201 | * They are used to access the status of each cable based on the cable_name | 201 | * They are used to access the status of each cable based on the cable_name |
202 | * or cable_index, which is retrived by extcon_find_cable_index | 202 | * or cable_index, which is retrieved by extcon_find_cable_index |
203 | */ | 203 | */ |
204 | extern int extcon_find_cable_index(struct extcon_dev *sdev, | 204 | extern int extcon_find_cable_index(struct extcon_dev *sdev, |
205 | const char *cable_name); | 205 | const char *cable_name); |
@@ -226,9 +226,9 @@ extern int extcon_unregister_interest(struct extcon_specific_cable_nb *nb); | |||
226 | 226 | ||
227 | /* | 227 | /* |
228 | * Following APIs are to monitor every action of a notifier. | 228 | * Following APIs are to monitor every action of a notifier. |
229 | * Registerer gets notified for every external port of a connection device. | 229 | * Registrar gets notified for every external port of a connection device. |
230 | * Probably this could be used to debug an action of notifier; however, | 230 | * Probably this could be used to debug an action of notifier; however, |
231 | * we do not recommend to use this at normal 'notifiee' device drivers who | 231 | * we do not recommend to use this for normal 'notifiee' device drivers who |
232 | * want to be notified by a specific external port of the notifier. | 232 | * want to be notified by a specific external port of the notifier. |
233 | */ | 233 | */ |
234 | extern int extcon_register_notifier(struct extcon_dev *edev, | 234 | extern int extcon_register_notifier(struct extcon_dev *edev, |