diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-07-18 16:16:29 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-08-08 10:58:35 +0900 |
commit | a7da72eeec78b8ce08a99d132b3e269942b977eb (patch) | |
tree | c829df298fbf7733f614743f98591b4b2d02063e /include/linux/extcon | |
parent | 5475e6317525b37241766c2e87731fd152e1150b (diff) | |
download | lwn-a7da72eeec78b8ce08a99d132b3e269942b977eb.tar.gz lwn-a7da72eeec78b8ce08a99d132b3e269942b977eb.zip |
extcon: adc-jack: Remove the usage of extcon_set_state()
This patch removes the usage of extcon_set_state() because it uses the bit
masking to change the state of external connectors. The extcon framework
should handle the state by extcon_set/get_cable_state_() with extcon id.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux/extcon')
-rw-r--r-- | include/linux/extcon/extcon-adc-jack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/extcon/extcon-adc-jack.h b/include/linux/extcon/extcon-adc-jack.h index ac85f2061351..a0e03b13b449 100644 --- a/include/linux/extcon/extcon-adc-jack.h +++ b/include/linux/extcon/extcon-adc-jack.h @@ -20,8 +20,8 @@ /** * struct adc_jack_cond - condition to use an extcon state - * @state: the corresponding extcon state (if 0, this struct * denotes the last adc_jack_cond element among the array) + * @id: the unique id of each external connector * @min_adc: min adc value for this condition * @max_adc: max adc value for this condition * @@ -33,7 +33,7 @@ * because when no adc_jack_cond is met, state = 0 is automatically chosen. */ struct adc_jack_cond { - u32 state; /* extcon state value. 0 if invalid */ + unsigned int id; u32 min_adc; u32 max_adc; }; |