From patchwork Fri Dec 30 04:11:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9491779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B0FA62AB9 for ; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3413B2018E for ; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2507025250; Fri, 30 Dec 2016 04:19:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ACF8D200F5 for ; Fri, 30 Dec 2016 04:19:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMoYN-0005zv-OZ; Fri, 30 Dec 2016 04:12:27 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMoXz-0005nx-E4 for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2016 04:12:04 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIZ02LW3CZDFY00@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2016 13:11:37 +0900 (KST) Received: from epsmges5p4.samsung.com (unknown [182.195.40.67]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20161230041137epcas1p45e8c581c1cbc9fd71ab082385f3aacd0~U7U5JIF8F2326023260epcas1p48; Fri, 30 Dec 2016 04:11:37 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p4.samsung.com (EPCPMTA) with SMTP id 41.E0.06849.97ED5685; Fri, 30 Dec 2016 13:11:37 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4~U7U4DEbzH1610416104epcas5p4g; Fri, 30 Dec 2016 04:11:36 +0000 (GMT) X-AuditID: b6c32a58-f79726d000001ac1-b3-5865de790d47 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id C4.C1.28332.87ED5685; Fri, 30 Dec 2016 13:11:36 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIZ0035GCZCVT80@mmp2.samsung.com>; Fri, 30 Dec 2016 13:11:36 +0900 (KST) From: Chanwoo Choi To: kishon@ti.com, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH v2 1/2] phy: rcar-gen3-usb2: Replace the deprecated extcon API Date: Fri, 30 Dec 2016 13:11:28 +0900 Message-id: <1483071089-8362-2-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1483071089-8362-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPKsWRmVeSWpSXmKPExsWy7bCmhm7lvdQIg1PP9Swm3rjCYnH9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2q1hMvHGFxeL6l+es Fhee9rBZbHp8jdXi8q45bBZbX75jsti6aS+zxc9D55kcODw2PFrN6vFk00VGj02rOtk8Ni+p 9+jbsorR4/iN7UwenzfJBbBHudlkpCampBYppOYl56dk5qXbKoWGuOlaKCnkJeam2ipF6PqG BCkplCXmlAJ5RgZowME5wD1YSd8uwS1j+YbVbAXrOCtePjvC2MDYy9HFyMkhIWAi8eHkO1YI W0ziwr31bF2MXBxCArMYJZ6uuMYOkhAS+MEosW2rM4jNJqAlsf/FDTYQW0TASWL58S9gDcwC yxklGv+tZAJJCAv4SfSsXApmswioSjTMPM0CYvMKuEhMunKWEWKbnMSHPY+AFnBwcAq4Snzf ygqxy0Wiaesm1gmMvAsYGVYxSqQWJBcUJ6XnGuWllusVJ+YWl+al6yXn525iBIf7M+kdjId3 uR9iFOBgVOLh/VGWGiHEmlhWXJl7iFGCg1lJhLfwNlCINyWxsiq1KD++qDQntfgQoynQXROZ pUST84GxmFcSb2hibmJubGBhbmlpYqQkzts4+1m4kEB6YklqdmpqQWoRTB8TB6dUA+OyefwV wi/5zbssL+tPPmnxUGzyGinfyXoFj3Q8uzKnbOjZapNw5IPther2xOtbrD6K1WVt23l1d5xd L1PhPq0PsekFIj8rDBewHZj/fdGuTzJN3zcyXuI0UU1nDn7Pceyee5JtT23B+qSTn3fVZj9x 3nr5Qtm59LoXjZMuNCUH5f5XmXVI3UuJpTgj0VCLuag4EQAUki3CjQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS9DaGFuZ2UgQWdlbnQ=?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTNS9TZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4 X-RootMTR: 20161230041136epcas5p45074607ce44561b57561bfb20a8c3bc4 References: <1483071089-8362-1-git-send-email-cw00.choi@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161229_201203_634517_E95BE51C X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-renesas-soc@vger.kernel.org, Chanwoo Choi , chanwoo@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Signed-off-by: Chanwoo Choi Acked-by: Yoshihiro Shimoda --- drivers/phy/phy-rcar-gen3-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/phy-rcar-gen3-usb2.c b/drivers/phy/phy-rcar-gen3-usb2.c index c63da1b955c1..54a83675f0a8 100644 --- a/drivers/phy/phy-rcar-gen3-usb2.c +++ b/drivers/phy/phy-rcar-gen3-usb2.c @@ -94,11 +94,11 @@ static void rcar_gen3_phy_usb2_work(struct work_struct *work) work); if (ch->extcon_host) { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, true); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB, false); } else { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, false); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB, true); } }