]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
power: supply: qcom_smbb: Replace the deprecated extcon API
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 30 Nov 2016 05:57:32 +0000 (14:57 +0900)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:00:07 +0000 (22:00 +0100)
This patch replaces the deprecated extcon API as following:
- extcon_set_cable_state_() -> extcon_set_state_sync()

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/qcom_smbb.c

index b5896ba2a60262b4531d8cc11e8fbe30b33b70d0..2caaf81d67b092623dc5ddee0dca071d6385943e 100644 (file)
@@ -378,7 +378,7 @@ static irqreturn_t smbb_usb_valid_handler(int irq, void *_data)
        struct smbb_charger *chg = _data;
 
        smbb_set_line_flag(chg, irq, STATUS_USBIN_VALID);
-       extcon_set_cable_state_(chg->edev, EXTCON_USB,
+       extcon_set_state_sync(chg->edev, EXTCON_USB,
                                chg->status & STATUS_USBIN_VALID);
        power_supply_changed(chg->usb_psy);