diff options
Diffstat (limited to 'Documentation/extcon/porting-android-switch-class')
| -rw-r--r-- | Documentation/extcon/porting-android-switch-class | 15 | 
1 files changed, 7 insertions, 8 deletions
diff --git a/Documentation/extcon/porting-android-switch-class b/Documentation/extcon/porting-android-switch-class index eb0fa5f4fe8..49c81caef84 100644 --- a/Documentation/extcon/porting-android-switch-class +++ b/Documentation/extcon/porting-android-switch-class @@ -25,8 +25,10 @@ MyungJoo Ham <myungjoo.ham@samsung.com>      @print_state: no change but type change (switch_dev->extcon_dev)  - switch_dev_register(sdev, dev) -	=> extcon_dev_register(edev, dev) -	: no change but type change (sdev->edev) +	=> extcon_dev_register(edev) +	: type change (sdev->edev) +	: remove second param('dev'). if edev has parent device, should store +	  'dev' to 'edev.dev.parent' before registering extcon device  - switch_dev_unregister(sdev)  	=> extcon_dev_unregister(edev)  	: no change but type change (sdev->edev) @@ -48,7 +50,7 @@ so that they are still compatible with legacy userspace processes.  	Extcon's extended features for switch device drivers with  	complex features usually required magic numbers in state  	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.    2. (Recommended) remove print_state callback. @@ -112,11 +114,8 @@ exclusive, the two cables cannot be in ATTACHED state simulteneously.  ****** ABI Location -  If "CONFIG_ANDROID" is enabled and "CONFIG_ANDROID_SWITCH" is -disabled, /sys/class/switch/* are created as symbolic links to -/sys/class/extcon/*. Because CONFIG_ANDROID_SWITCH creates -/sys/class/switch directory, we disable symboling linking if -CONFIG_ANDROID_SWITCH is enabled. +  If "CONFIG_ANDROID" is enabled, /sys/class/switch/* are created +as symbolic links to /sys/class/extcon/*.    The two files of switch class, name and state, are provided with  extcon, too. When the multistate support (STEP 2 of CHAPTER 1.) is  | 
