diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-07-21 13:00:29 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-08-08 03:58:36 +0200 |
commit | 7575591c2db8cbf4ba543cb9bcb6a4cdd5a7aa97 (patch) | |
tree | b1b865f0a14e1e01134c3ffa4e7da767ac1085d8 /drivers/extcon | |
parent | extcon: adc-jack: Remove the usage of extcon_set_state() (diff) | |
download | linux-7575591c2db8cbf4ba543cb9bcb6a4cdd5a7aa97.tar.xz linux-7575591c2db8cbf4ba543cb9bcb6a4cdd5a7aa97.zip |
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: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c index d023789f0fda..b1b0264eb12d 100644 --- a/drivers/extcon/extcon-gpio.c +++ b/drivers/extcon/extcon-gpio.c @@ -49,7 +49,7 @@ static void gpio_extcon_work(struct work_struct *work) state = gpiod_get_value_cansleep(data->id_gpiod); if (data->pdata->gpio_active_low) 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) |