diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-11-30 06:57:32 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-04 22:00:07 +0100 |
commit | bdca5d9e6b9ab0082a2aeb810941d78f10b75e63 (patch) | |
tree | 8f558686c5f88e9773b629ae90bdbc65926d32c6 | |
parent | power: supply: axp288_charger: Replace the extcon API (diff) | |
download | linux-bdca5d9e6b9ab0082a2aeb810941d78f10b75e63.tar.xz linux-bdca5d9e6b9ab0082a2aeb810941d78f10b75e63.zip |
power: supply: qcom_smbb: Replace the deprecated extcon API
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>
-rw-r--r-- | drivers/power/supply/qcom_smbb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c index b5896ba2a602..2caaf81d67b0 100644 --- a/drivers/power/supply/qcom_smbb.c +++ b/drivers/power/supply/qcom_smbb.c @@ -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); |