Skip to content

Commit 2b5e61f

Browse files
andy-shevchanwoochoi
authored andcommitted
extcon: Amend kernel documentation of struct extcon_dev
First of all, the @lock description is missing. Add it. Second, correct the terminator value for the mutual exclusive cabling. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 6ee0a22 commit 2b5e61f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/extcon/extcon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* are disabled.
1414
* @mutually_exclusive: Array of mutually exclusive set of cables that cannot
1515
* be attached simultaneously. The array should be
16-
* ending with NULL or be NULL (no mutually exclusive
17-
* cables). For example, if it is { 0x7, 0x30, 0}, then,
16+
* ending with 0 or be NULL (no mutually exclusive cables).
17+
* For example, if it is {0x7, 0x30, 0}, then,
1818
* {0, 1}, {0, 1, 2}, {0, 2}, {1, 2}, or {4, 5} cannot
1919
* be attached simulataneously. {0x7, 0} is equivalent to
2020
* {0x3, 0x6, 0x5, 0}. If it is {0xFFFFFFFF, 0}, there
@@ -27,7 +27,7 @@
2727
* @nh: Notifier for the state change events from this extcon
2828
* @entry: To support list of extcon devices so that users can
2929
* search for extcon devices based on the extcon name.
30-
* @lock:
30+
* @lock: Protects device state and serialises device registration
3131
* @max_supported: Internal value to store the number of cables.
3232
* @extcon_dev_type: Device_type struct to provide attribute_groups
3333
* customized for each extcon device.

0 commit comments

Comments
 (0)