Commit 686fb5df authored by MyungJoo Ham's avatar MyungJoo Ham Committed by Chanwoo Choi

extcon: fix switch class porting guide (Documentation)

- Unfinished sentence finished.
- Incorrect description on the compat-mode condition corrected.
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 77438610
...@@ -50,7 +50,7 @@ so that they are still compatible with legacy userspace processes. ...@@ -50,7 +50,7 @@ so that they are still compatible with legacy userspace processes.
Extcon's extended features for switch device drivers with Extcon's extended features for switch device drivers with
complex features usually required magic numbers in state complex features usually required magic numbers in state
value of switch_dev. With extcon, such magic numbers that value of switch_dev. With extcon, such magic numbers that
support multiple cables ( support multiple cables are no more required or supported.
1. Define cable names at edev->supported_cable. 1. Define cable names at edev->supported_cable.
2. (Recommended) remove print_state callback. 2. (Recommended) remove print_state callback.
...@@ -114,11 +114,8 @@ exclusive, the two cables cannot be in ATTACHED state simulteneously. ...@@ -114,11 +114,8 @@ exclusive, the two cables cannot be in ATTACHED state simulteneously.
****** ABI Location ****** ABI Location
If "CONFIG_ANDROID" is enabled and "CONFIG_ANDROID_SWITCH" is If "CONFIG_ANDROID" is enabled, /sys/class/switch/* are created
disabled, /sys/class/switch/* are created as symbolic links to as symbolic links to /sys/class/extcon/*.
/sys/class/extcon/*. Because CONFIG_ANDROID_SWITCH creates
/sys/class/switch directory, we disable symboling linking if
CONFIG_ANDROID_SWITCH is enabled.
The two files of switch class, name and state, are provided with The two files of switch class, name and state, are provided with
extcon, too. When the multistate support (STEP 2 of CHAPTER 1.) is extcon, too. When the multistate support (STEP 2 of CHAPTER 1.) is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment