diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-08-16 02:55:34 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-09-12 22:26:26 -0400 |
commit | 8670b4598064007abfc44554e713fa2004734e1d (patch) | |
tree | 0dbe828dfa26bdd689c83b91735a756a2b484609 /drivers/extcon/extcon-axp288.c | |
parent | 525867dbd11899835a029da3532eeee9f773db31 (diff) |
extcon: Use the extcon_set_state_sync() instead of deprecated functions
This patch alters the renamed extcon API to set the state of the external
connectors instead of deprecated extcon_set_cable_state_().
Because the patch[1] modifies the function name to maintain the function
naming pattern.
- extcon_set_cable_state_() -> extcon_set_state_sync()
- extcon_get_cable_state_() -> extcon_get_state()
[1] https://lkml.org/lkml/2016/8/4/729
- extcon: Rename the extcon_set/get_state() to maintain the function naming pattern
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Diffstat (limited to 'drivers/extcon/extcon-axp288.c')
-rw-r--r-- | drivers/extcon/extcon-axp288.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 04610f851437..42f41e808292 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c | |||
@@ -226,7 +226,7 @@ notify_otg: | |||
226 | } | 226 | } |
227 | 227 | ||
228 | if (notify_charger) | 228 | if (notify_charger) |
229 | extcon_set_cable_state_(info->edev, cable, vbus_attach); | 229 | extcon_set_state_sync(info->edev, cable, vbus_attach); |
230 | 230 | ||
231 | /* Clear the flags on disconnect event */ | 231 | /* Clear the flags on disconnect event */ |
232 | if (!vbus_attach) | 232 | if (!vbus_attach) |