From patchwork Mon Jan 16 12:37:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9518623 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 E3A936020B for ; Mon, 16 Jan 2017 12:38:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7EF2281F9 for ; Mon, 16 Jan 2017 12:38:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA3972824F; Mon, 16 Jan 2017 12:38:14 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65DF1281F9 for ; Mon, 16 Jan 2017 12:38:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cT6Y8-0007ZL-7N; Mon, 16 Jan 2017 12:38:12 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cT6XZ-0006gl-1N for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2017 12:37:40 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV02KP7HQ2T310@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2017 21:37:14 +0900 (KST) Received: from epsmges1p4.samsung.com (unknown [182.195.40.70]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170116123714epcas1p2d42cbac41ab6c0939b87f5a9e12a9263~aQMM_QRN20463204632epcas1p2D; Mon, 16 Jan 2017 12:37:14 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id EE.C9.18731.A7EBC785; Mon, 16 Jan 2017 21:37:14 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116123714epcas1p11e40ca467ede326b0cf8d094045db1ab~aQMMl7hJE1653316533epcas1p12; Mon, 16 Jan 2017 12:37:14 +0000 (GMT) X-AuditID: b6c32a38-f79836d00000492b-03-587cbe7a4603 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id E7.BC.08931.97EBC785; Mon, 16 Jan 2017 21:37:14 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJV00E5AHQ1PE30@mmp1.samsung.com>; Mon, 16 Jan 2017 21:37:13 +0900 (KST) From: Chanwoo Choi To: balbi@kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v3 5/6] usb: phy: tahvo: Replace the deprecated extcon API Date: Mon, 16 Jan 2017 21:37:01 +0900 Message-id: <1484570222-30522-6-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1484570222-30522-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHKsWRmVeSWpSXmKPExsWy7bCmgW7VvpoIg/0fpCyOtT1ht5h44wqL xfUvz1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xxhUW i+tfnrNaNC9ez2ax6fE1VovLu+awWSxa1srswO6xaVUnm8f+uWvYPTYvqffo27KK0ePzJrkA 1ig3m4zUxJTUIoXUvOT8lMy8dFul0BA3XQslhbzE3FRbpQhd35AgJYWyxJxSIM/IAA04OAe4 Byvp2yW4ZSw9N5W9YJlgxZf+2cwNjE/5uhg5OSQETCRaz5xjhbDFJC7cW88GYgsJLGWU+DnR p4uRC8j+wSgxb9k0FpAEm4CWxP4XN4CKODhEBAwk2m6IgdQwC8xnlNh94QXYIGEBL4mmCy/A BrEIqErMfzadGcTmFXCV+H7mHDPEMjmJD3sesYPM4RRwk1je4wqx11Vi1bdexgmMvAsYGVYx SqQWJBcUJ6XnGuallusVJ+YWl+al6yXn525iBIfzM6kdjAd3uR9iFOBgVOLhXbCjOkKINbGs uDL3EKMEB7OSCK/7zpoIId6UxMqq1KL8+KLSnNTiQ4ymQHdNZJYSTc4HxlpeSbyhibmJubGB hbmlpYmRkjhv4+xn4UIC6YklqdmpqQWpRTB9TBycUg2MbDL7EiZMWmjZdNGat2j3pEnfhS52 Oyfk9+nwzbqZer1EadEksZnrci8d/+6duMNm6wfTE/47l01/Emhg9rBvHr/shMzFi59O2XJk qZzuq9Idh/4E/byvt+LzU6PpN17MdN/17ruC3OYiRcu6ddueGKTLnVjhf0ApYLNBbqJKmVnf 3L151auTzZRYijMSDbWYi4oTAfh80Kt9AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116123714epcas1p11e40ca467ede326b0cf8d094045db1ab X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 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: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170116123714epcas1p11e40ca467ede326b0cf8d094045db1ab X-RootMTR: 20170116123714epcas1p11e40ca467ede326b0cf8d094045db1ab References: <1484570222-30522-1-git-send-email-cw00.choi@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170116_043737_228059_9B7B59C4 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chanwoo Choi , chanwoo@kernel.org, linux-usb@vger.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: Felipe Balbi --- drivers/usb/phy/phy-tahvo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-tahvo.c b/drivers/usb/phy/phy-tahvo.c index ab5d364f6e8c..a31c8682e998 100644 --- a/drivers/usb/phy/phy-tahvo.c +++ b/drivers/usb/phy/phy-tahvo.c @@ -121,7 +121,7 @@ static void check_vbus_state(struct tahvo_usb *tu) prev_state = tu->vbus_state; tu->vbus_state = reg & TAHVO_STAT_VBUS; if (prev_state != tu->vbus_state) { - extcon_set_cable_state_(tu->extcon, EXTCON_USB, tu->vbus_state); + extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); sysfs_notify(&tu->pt_dev->dev.kobj, NULL, "vbus_state"); } } @@ -130,7 +130,7 @@ static void tahvo_usb_become_host(struct tahvo_usb *tu) { struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); - extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, true); + extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, true); /* Power up the transceiver in USB host mode */ retu_write(rdev, TAHVO_REG_USBR, USBR_REGOUT | USBR_NSUSPEND | @@ -149,7 +149,7 @@ static void tahvo_usb_become_peripheral(struct tahvo_usb *tu) { struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); - extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, false); + extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, false); /* Power up transceiver and set it in USB peripheral mode */ retu_write(rdev, TAHVO_REG_USBR, USBR_SLAVE_CONTROL | USBR_REGOUT | @@ -379,9 +379,9 @@ static int tahvo_usb_probe(struct platform_device *pdev) } /* Set the initial cable state. */ - extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, + extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, tu->tahvo_mode == TAHVO_MODE_HOST); - extcon_set_cable_state_(tu->extcon, EXTCON_USB, tu->vbus_state); + extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); /* Create OTG interface */ tahvo_usb_power_off(tu);