Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532970 > unrolled thread

[PATCH 04/12] power_supply: qcom_smbb: Replace the deprecated extcon API

Started byChanwoo Choi <cw00.choi@samsung.com>
First post2016-11-30 07:00 +0100
Last post2016-11-30 07:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 04/12] power_supply: qcom_smbb: Replace the deprecated extcon  API Chanwoo Choi <cw00.choi@samsung.com> - 2016-11-30 07:00 +0100

#1532970 — [PATCH 04/12] power_supply: qcom_smbb: Replace the deprecated extcon API

FromChanwoo Choi <cw00.choi@samsung.com>
Date2016-11-30 07:00 +0100
Subject[PATCH 04/12] power_supply: qcom_smbb: Replace the deprecated extcon API
Message-ID<sJ65X-214-17@gated-at.bofh.it>
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>
---
 drivers/power/supply/qcom_smbb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c
index bb91a1c339bc..7b1991265b03 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);
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web