Skip to content

Commit c338bb0

Browse files
pmeerwgregkh
authored andcommitted
extcon: fixing typos
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8e5f501 commit c338bb0

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎drivers/extcon/extcon-class.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static int _call_per_cable(struct notifier_block *nb, unsigned long val,
443443

444444
/**
445445
* extcon_register_interest() - Register a notifier for a state change of a
446-
* specific cable, not a entier set of cables of a
446+
* specific cable, not an entier set of cables of a
447447
* extcon device.
448448
* @obj: an empty extcon_specific_cable_nb object to be returned.
449449
* @extcon_name: the name of extcon device.
@@ -499,7 +499,7 @@ int extcon_unregister_interest(struct extcon_specific_cable_nb *obj)
499499
}
500500

501501
/**
502-
* extcon_register_notifier() - Register a notifee to get notified by
502+
* extcon_register_notifier() - Register a notifiee to get notified by
503503
* any attach status changes from the extcon.
504504
* @edev: the extcon device.
505505
* @nb: a notifier block to be registered.
@@ -516,7 +516,7 @@ int extcon_register_notifier(struct extcon_dev *edev,
516516
EXPORT_SYMBOL_GPL(extcon_register_notifier);
517517

518518
/**
519-
* extcon_unregister_notifier() - Unregister a notifee from the extcon device.
519+
* extcon_unregister_notifier() - Unregister a notifiee from the extcon device.
520520
* @edev: the extcon device.
521521
* @nb: a registered notifier block to be unregistered.
522522
*/
@@ -806,7 +806,7 @@ EXPORT_SYMBOL_GPL(extcon_dev_register);
806806

807807
/**
808808
* extcon_dev_unregister() - Unregister the extcon device.
809-
* @edev: the extcon device instance to be unregitered.
809+
* @edev: the extcon device instance to be unregistered.
810810
*
811811
* Note that this does not call kfree(edev) because edev was not allocated
812812
* by this class.

‎include/linux/extcon.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030

3131
/*
3232
* 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.
3434
* Please use standard cable names unless your notifier device has
3535
* a very unique and abnormal cable or
3636
* the cable type is supposed to be used with only one unique
37-
* pair of notifier/notifee devices.
37+
* pair of notifier/notifiee devices.
3838
*
3939
* Please add any other "standard" cables used with extcon dev.
4040
*
4141
* You may add a dot and number to specify version or specification
4242
* of the specific cable if it is required. (e.g., "Fast-charger.18"
4343
* and "Fast-charger.10" for 1.8A and 1.0A chargers)
44-
* However, the notifee and notifier should be able to handle such
45-
* string and if the notifee can negotiate the protocol or idenify,
44+
* However, the notifiee and notifier should be able to handle such
45+
* string and if the notifiee can negotiate the protocol or identify,
4646
* you don't need such convention. This convention is helpful when
4747
* notifier can distinguish but notifiee cannot.
4848
*/
@@ -76,7 +76,7 @@ struct extcon_cable;
7676
* struct extcon_dev - An extcon device represents one external connector.
7777
* @name The name of this extcon device. Parent device name is used
7878
* if NULL.
79-
* @supported_cable Array of supported cable name ending with NULL.
79+
* @supported_cable Array of supported cable names ending with NULL.
8080
* If supported_cable is NULL, cable name related APIs
8181
* are disabled.
8282
* @mutually_exclusive Array of mutually exclusive set of cables that cannot
@@ -95,7 +95,7 @@ struct extcon_cable;
9595
* @state Attach/detach state of this extcon. Do not provide at
9696
* register-time
9797
* @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
9999
* for extcon devices based on the extcon name.
100100
* @lock
101101
* @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);
199199
/*
200200
* get/set_cable_state access each bit of the 32b encoded state value.
201201
* 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
203203
*/
204204
extern int extcon_find_cable_index(struct extcon_dev *sdev,
205205
const char *cable_name);
@@ -226,9 +226,9 @@ extern int extcon_unregister_interest(struct extcon_specific_cable_nb *nb);
226226

227227
/*
228228
* 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.
230230
* 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
232232
* want to be notified by a specific external port of the notifier.
233233
*/
234234
extern int extcon_register_notifier(struct extcon_dev *edev,

0 commit comments

Comments
 (0)