projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c314803
)
power: supply: qcom_smbb: Replace the deprecated extcon API
author
Chanwoo Choi
<cw00.choi@samsung.com>
Wed, 30 Nov 2016 05:57:32 +0000
(14:57 +0900)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/drivers/power/supply/qcom_smbb.c
b/drivers/power/supply/qcom_smbb.c
index b5896ba2a60262b4531d8cc11e8fbe30b33b70d0..2caaf81d67b092623dc5ddee0dca071d6385943e 100644
(file)
--- 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);