extcon: gpio: Remove the usage of extcon_set_state()
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 21 Jul 2016 11:00:29 +0000 (20:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 01:58:36 +0000 (10:58 +0900)
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>
drivers/extcon/extcon-gpio.c

index d023789f0fdac94a2fd8b6bfc90618793a2bda37..b1b0264eb12db59f81f12e15e43e0f2cf3a168e9 100644 (file)
@@ -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)
This page took 0.026111 seconds and 5 git commands to generate.