summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2016-08-16 09:55:34 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2016-09-13 05:26:26 +0300
commit8670b4598064007abfc44554e713fa2004734e1d (patch)
tree0dbe828dfa26bdd689c83b91735a756a2b484609 /drivers/extcon/extcon-adc-jack.c
parent525867dbd11899835a029da3532eeee9f773db31 (diff)
downloadlinux-8670b4598064007abfc44554e713fa2004734e1d.tar.xz
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-adc-jack.c')
-rw-r--r--drivers/extcon/extcon-adc-jack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index e62e6cd7e00a..bc538708c753 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -75,7 +75,7 @@ static void adc_jack_handler(struct work_struct *work)
for (i = 0; i < data->num_conditions; i++) {
def = &data->adc_conditions[i];
if (def->min_adc <= adc_val && def->max_adc >= adc_val) {
- extcon_set_cable_state_(data->edev, def->id, true);
+ extcon_set_state_sync(data->edev, def->id, true);
return;
}
}
@@ -83,7 +83,7 @@ static void adc_jack_handler(struct work_struct *work)
/* Set the detached state if adc value is not included in the range */
for (i = 0; i < data->num_conditions; i++) {
def = &data->adc_conditions[i];
- extcon_set_cable_state_(data->edev, def->id, false);
+ extcon_set_state_sync(data->edev, def->id, false);
}
}