mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
5475e63175
commit
a7da72eeec
2 changed files with 16 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue