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:

committed by
Kishon Vijay Abraham I

parent
cdc0583202
commit
cc60211237
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user