Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756386AbcK3F6G (ORCPT ); Wed, 30 Nov 2016 00:58:06 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:47826 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753070AbcK3F5p (ORCPT ); Wed, 30 Nov 2016 00:57:45 -0500 X-AuditID: cbfee61b-f796f6d000004092-09-583e6a567153 From: Chanwoo Choi To: balbi@kernel.org, gregkh@linuxfoundation.org, kishon@ti.com, sre@kernel.org Cc: Peter.Chen@nxp.com, wens@csie.org, yoshihiro.shimoda.uh@renesas.com, maxime.ripard@free-electrons.com, b-liu@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, cw00.choi@samsung.com, chanwoo@kernel.org Subject: [PATCH 04/12] power_supply: qcom_smbb: Replace the deprecated extcon API Date: Wed, 30 Nov 2016 14:57:32 +0900 Message-id: <1480485460-2663-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1480485460-2663-1-git-send-email-cw00.choi@samsung.com> References: <1480485460-2663-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsVy+t9jAd2wLLsIgwfT5S3+31nEanGs7Qm7 xcQbV1gsrn95zmrRvHg9m8WFpz1sFpseX2O1uLxrDpvF7CX9LBafe48wWmx9+Y7JYtGyVmaL rZv2Mlv8uXeH1eL07hKLn4fOM1l83fuZzUHQY8Oj1aweTzZdZPTYtKqTzWP/3DXsHpuX1Hts fLeDyePbmYksHn1bVjF6HL+xncnj8ya5AK4oN5uM1MSU1CKF1Lzk/JTMvHRbpdAQN10LJYW8 xNxUW6UIXd+QICWFssScUiDPyAANODgHuAcr6dsluGW0vxEoOMtW8XzGUrYGxlusXYwcHBIC JhIH54p3MXICmWISF+6tZ+ti5OIQEljKKHG47zgLhPODUeLPp2dMIFVsAloS+1/cYAOxRQT8 JXY0zgErYhZ4xCRx5eV2FpCEsECwxK+ZC5lBbBYBVYlPb06zg9i8Ai4Sa5+sY4NYJyfxYc8j dpArOAVcJSZ9TwEJCwGVrFm4mGkCI+8CRoZVjBKpBckFxUnpuUZ5qeV6xYm5xaV56XrJ+bmb GMEx9kx6B+PhXe6HGAU4GJV4eBfMsY0QYk0sK67MPcQowcGsJMLrlmYXIcSbklhZlVqUH19U mpNafIjRFOiuicxSosn5wPjPK4k3NDE3MTc2sDC3tDQxUhLnbZz9LFxIID2xJDU7NbUgtQim j4mDU6qB8YjatWXvzm3ufrN37eOJDnp2zmKfgpyT5y+oE2/r7fzy4lPBpxkTmbdPXjArUalY d2588Z6VbBd3619ZtEf+dYNqVuXyC901O7IsZRISm37dU83cvFJy5tPr6adbNM4fNPzjduCh vknzhZffz8Q/Efjf/uDfhytVa3eKvkmrDdZU9xSr/Sff9U6JpTgj0VCLuag4EQCv6vnmxwIA AA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 820 Lines: 23 This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Signed-off-by: Chanwoo Choi --- 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