diff options
| author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-07-18 03:16:29 -0400 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-08-07 21:58:35 -0400 |
| commit | a7da72eeec78b8ce08a99d132b3e269942b977eb (patch) | |
| tree | c829df298fbf7733f614743f98591b4b2d02063e /include/linux/extcon | |
| parent | 5475e6317525b37241766c2e87731fd152e1150b (diff) | |
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 @@ | |||
| 20 | 20 | ||
| 21 | /** | 21 | /** |
| 22 | * struct adc_jack_cond - condition to use an extcon state | 22 | * struct adc_jack_cond - condition to use an extcon state |
| 23 | * @state: the corresponding extcon state (if 0, this struct | ||
| 24 | * denotes the last adc_jack_cond element among the array) | 23 | * denotes the last adc_jack_cond element among the array) |
| 24 | * @id: the unique id of each external connector | ||
| 25 | * @min_adc: min adc value for this condition | 25 | * @min_adc: min adc value for this condition |
| 26 | * @max_adc: max adc value for this condition | 26 | * @max_adc: max adc value for this condition |
| 27 | * | 27 | * |
| @@ -33,7 +33,7 @@ | |||
| 33 | * because when no adc_jack_cond is met, state = 0 is automatically chosen. | 33 | * because when no adc_jack_cond is met, state = 0 is automatically chosen. |
| 34 | */ | 34 | */ |
| 35 | struct adc_jack_cond { | 35 | struct adc_jack_cond { |
| 36 | u32 state; /* extcon state value. 0 if invalid */ | 36 | unsigned int id; |
| 37 | u32 min_adc; | 37 | u32 min_adc; |
| 38 | u32 max_adc; | 38 | u32 max_adc; |
| 39 | }; | 39 | }; |
