hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-class-extcon
....@@ -39,19 +39,22 @@
3939 callback.
4040
4141 If the default callback for showing function is used, the
42
- format is like this:
43
- # cat state
44
- USB_OTG=1
45
- HDMI=0
46
- TA=1
47
- EAR_JACK=0
48
- #
42
+ format is like this::
43
+
44
+ # cat state
45
+ USB_OTG=1
46
+ HDMI=0
47
+ TA=1
48
+ EAR_JACK=0
49
+ #
50
+
4951 In this example, the extcon device has USB_OTG and TA
5052 cables attached and HDMI and EAR_JACK cables detached.
5153
5254 In order to update the state of an extcon device, enter a hex
53
- state number starting with 0x:
54
- # echo 0xHEX > state
55
+ state number starting with 0x::
56
+
57
+ # echo 0xHEX > state
5558
5659 This updates the whole state of the extcon device.
5760 Inputs of all the methods are required to meet the
....@@ -84,12 +87,13 @@
8487 Description:
8588 Shows the relations of mutually exclusiveness. For example,
8689 if the mutually_exclusive array of extcon device is
87
- {0x3, 0x5, 0xC, 0x0}, then the output is:
88
- # ls mutually_exclusive/
89
- 0x3
90
- 0x5
91
- 0xc
92
- #
90
+ {0x3, 0x5, 0xC, 0x0}, then the output is::
91
+
92
+ # ls mutually_exclusive/
93
+ 0x3
94
+ 0x5
95
+ 0xc
96
+ #
9397
9498 Note that mutually_exclusive is a sub-directory of the extcon
9599 device and the file names under the mutually_exclusive