Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: fix switch class porting guide (Documentation)

- Unfinished sentence finished.
- Incorrect description on the compat-mode condition corrected.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

authored by

MyungJoo Ham and committed by
Chanwoo Choi
686fb5df 77438610

+3 -6
+3 -6
Documentation/extcon/porting-android-switch-class
··· 50 50 Extcon's extended features for switch device drivers with 51 51 complex features usually required magic numbers in state 52 52 value of switch_dev. With extcon, such magic numbers that 53 - support multiple cables ( 53 + support multiple cables are no more required or supported. 54 54 55 55 1. Define cable names at edev->supported_cable. 56 56 2. (Recommended) remove print_state callback. ··· 114 114 115 115 ****** ABI Location 116 116 117 - If "CONFIG_ANDROID" is enabled and "CONFIG_ANDROID_SWITCH" is 118 - disabled, /sys/class/switch/* are created as symbolic links to 119 - /sys/class/extcon/*. Because CONFIG_ANDROID_SWITCH creates 120 - /sys/class/switch directory, we disable symboling linking if 121 - CONFIG_ANDROID_SWITCH is enabled. 117 + If "CONFIG_ANDROID" is enabled, /sys/class/switch/* are created 118 + as symbolic links to /sys/class/extcon/*. 122 119 123 120 The two files of switch class, name and state, are provided with 124 121 extcon, too. When the multistate support (STEP 2 of CHAPTER 1.) is