.. | .. |
---|
39 | 39 | callback. |
---|
40 | 40 | |
---|
41 | 41 | 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 | + |
---|
49 | 51 | In this example, the extcon device has USB_OTG and TA |
---|
50 | 52 | cables attached and HDMI and EAR_JACK cables detached. |
---|
51 | 53 | |
---|
52 | 54 | 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 |
---|
55 | 58 | |
---|
56 | 59 | This updates the whole state of the extcon device. |
---|
57 | 60 | Inputs of all the methods are required to meet the |
---|
.. | .. |
---|
84 | 87 | Description: |
---|
85 | 88 | Shows the relations of mutually exclusiveness. For example, |
---|
86 | 89 | 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 | + # |
---|
93 | 97 | |
---|
94 | 98 | Note that mutually_exclusive is a sub-directory of the extcon |
---|
95 | 99 | device and the file names under the mutually_exclusive |
---|