projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extcon: Use the extcon_set_state_sync() instead of deprecated functions
[deliverable/linux.git]
/
drivers
/
extcon
/
extcon-max77843.c
diff --git
a/drivers/extcon/extcon-max77843.c
b/drivers/extcon/extcon-max77843.c
index b188bd650efa5261c13d1fc9d4fb3fea894f225a..5d11fdf36e9424b9e03eb484098e4752f147be4c 100644
(file)
--- a/
drivers/extcon/extcon-max77843.c
+++ b/
drivers/extcon/extcon-max77843.c
@@
-346,7
+346,7
@@
static int max77843_muic_adc_gnd_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_USB_HOST, attached);
+ extcon_set_
state_sync
(info->edev, EXTCON_USB_HOST, attached);
break;
case MAX77843_MUIC_GND_MHL_VB:
case MAX77843_MUIC_GND_MHL:
break;
case MAX77843_MUIC_GND_MHL_VB:
case MAX77843_MUIC_GND_MHL:
@@
-356,7
+356,7
@@
static int max77843_muic_adc_gnd_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_DISP_MHL, attached);
+ extcon_set_
state_sync
(info->edev, EXTCON_DISP_MHL, attached);
break;
default:
dev_err(info->dev, "failed to detect %s accessory(gnd:0x%x)\n",
break;
default:
dev_err(info->dev, "failed to detect %s accessory(gnd:0x%x)\n",
@@
-392,7
+392,7
@@
static int max77843_muic_jig_handler(struct max77843_muic_info *info,
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_JIG, attached);
+ extcon_set_
state_sync
(info->edev, EXTCON_JIG, attached);
return 0;
}
return 0;
}
@@
-486,8
+486,8
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_USB, attached);
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_SDP,
+ extcon_set_
state_sync
(info->edev, EXTCON_USB, attached);
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_SDP,
attached);
break;
case MAX77843_MUIC_CHG_DOWNSTREAM:
attached);
break;
case MAX77843_MUIC_CHG_DOWNSTREAM:
@@
-497,7
+497,7
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_CDP,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_CDP,
attached);
break;
case MAX77843_MUIC_CHG_DEDICATED:
attached);
break;
case MAX77843_MUIC_CHG_DEDICATED:
@@
-507,7
+507,7
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_DCP,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_DCP,
attached);
break;
case MAX77843_MUIC_CHG_SPECIAL_500MA:
attached);
break;
case MAX77843_MUIC_CHG_SPECIAL_500MA:
@@
-517,7
+517,7
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_SLOW,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_SLOW,
attached);
break;
case MAX77843_MUIC_CHG_SPECIAL_1A:
attached);
break;
case MAX77843_MUIC_CHG_SPECIAL_1A:
@@
-527,7
+527,7
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
if (ret < 0)
return ret;
if (ret < 0)
return ret;
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_FAST,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_FAST,
attached);
break;
case MAX77843_MUIC_CHG_GND:
attached);
break;
case MAX77843_MUIC_CHG_GND:
@@
-536,10
+536,10
@@
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
/* Charger cable on MHL accessory is attach or detach */
if (gnd_type == MAX77843_MUIC_GND_MHL_VB)
/* Charger cable on MHL accessory is attach or detach */
if (gnd_type == MAX77843_MUIC_GND_MHL_VB)
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_DCP,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_DCP,
true);
else if (gnd_type == MAX77843_MUIC_GND_MHL)
true);
else if (gnd_type == MAX77843_MUIC_GND_MHL)
- extcon_set_
cable_state_
(info->edev, EXTCON_CHG_USB_DCP,
+ extcon_set_
state_sync
(info->edev, EXTCON_CHG_USB_DCP,
false);
break;
case MAX77843_MUIC_CHG_NONE:
false);
break;
case MAX77843_MUIC_CHG_NONE:
This page took
0.050946 seconds
and
5
git commands to generate.