Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1662622f authored by Chanwoo Choi's avatar Chanwoo Choi Committed by Kishon Vijay Abraham I
Browse files

extcon: gpio: 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_cable_state_() with extcon id.

Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent cc602112
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -49,7 +49,7 @@ static void gpio_extcon_work(struct work_struct *work)
	state = gpiod_get_value_cansleep(data->id_gpiod);
	state = gpiod_get_value_cansleep(data->id_gpiod);
	if (data->pdata->gpio_active_low)
	if (data->pdata->gpio_active_low)
		state = !state;
		state = !state;
	extcon_set_state(data->edev, state);
	extcon_set_cable_state_(data->edev, data->pdata->extcon_id, state);
}
}


static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
static irqreturn_t gpio_irq_handler(int irq, void *dev_id)