From patchwork Thu Aug 3 08:20:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9878405 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 B54806037D for ; Thu, 3 Aug 2017 08:21:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A072928877 for ; Thu, 3 Aug 2017 08:21:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 950F728881; Thu, 3 Aug 2017 08:21:42 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 22D1D2888D for ; Thu, 3 Aug 2017 08:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Yq2Uc8P6ryFCmsAJ6lZfBf/3WnGSMUjVLrxQeMFPG6I=; b=m0rBq9buMunWtvZhq6n4aB3BNV AN2pkXh1ftbH+hMvJBeZQKD70uVJPrgUFufgLgMnhJ/Jtzi6eEXt/ZrGi0BtuHpb9ol28y4dkONAB jRNLybKDhmOssuboQmdIWn8UyDnnoaIDPCiSoSI05GY7ylt1mpLkM7zJPkr7OO33VyZSxnfdorf5/ 6SBW+TpH210uYIDnTg93x+GU2DGLULX3bxPR8AxnRuETzZpwuZzsobPISCRQbsAJ+635GCW/9b2Eb +BhjNrmbCyho4GiLZbv2TRn7swyZ8UOMCCKk76FL4g84BstK1scrjr+JB80743svBunoKnLLO4VFQ ESr5BJNg==; 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 1ddBO1-0005FN-OO; Thu, 03 Aug 2017 08:21:41 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddBNi-0004yj-U0 for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2017 08:21:25 +0000 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20170803082051epoutp01321ca93c32298d47d7a8ae993b4592df~XSEKLlMYJ1385513855epoutp01V; Thu, 3 Aug 2017 08:20:51 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.67]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170803082050epcas1p4d449fb0f7ba6deee5708f6ee70425d59~XSEJqgntw1540215402epcas1p4U; Thu, 3 Aug 2017 08:20:50 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 47.87.20296.2ECD2895; Thu, 3 Aug 2017 17:20:50 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170803082050epcas1p179818a40e214e4ab5884f8a3bca657f8~XSEJO4sRZ0220502205epcas1p1C; Thu, 3 Aug 2017 08:20:50 +0000 (GMT) X-AuditID: b6c32a38-f799e6d000004f48-85-5982dce2e647 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 00.FB.06213.2ECD2895; Thu, 3 Aug 2017 17:20:50 +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 <0OU3008ZJOIPQFB0@mmp1.samsung.com>; Thu, 03 Aug 2017 17:20:50 +0900 (KST) From: Chanwoo Choi To: balbi@kernel.org Subject: [PATCH v2 3/5] phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API Date: Thu, 03 Aug 2017 17:20:46 +0900 Message-id: <1501748448-26821-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1501748448-26821-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOKsWRmVeSWpSXmKPExsWy7bCmge6jO02RBns2Gloca3vCbjHxxhUW i+tfnrNaNC9ez2Zx4WkPm8Wmx9dYLS7vmsNmsWhZK7PF7cYVbBaNm7pYHbg8Zt0/y+axaVUn m8f+uWvYPTYvqffo27KK0eP4je1MHp83yQWwR6XaZKQmpqQWKaTmJeenZOal2yp5B8c7x5ua GRjqGlpamCsp5CXmptoqufgE6Lpl5gCdp6RQlphTChQKSCwuVtK3synKLy1JVcjILy6xVYo2 NDTSMzQw1zMyMtIzMY61MjIFKklIzbi56zh7QR9vxYQbJxkbGNdydzFyckgImEhM+zabDcIW k7hwbz2YLSSwg1Gi6VtKFyMXkP2ZUWLFqyYmmIZnW/cwQiRAih49Z4JwfjBKXFm0C6ydTUBL Yv+LG2C2iICIRNvzGWBFzAK9TBINB08CORwcwgIhEvt740BMFgFVibYzniDlvAKuEntb9rJD LJOT+LDnEZjNKeAmce/eL2aI+HR2iU3N4SCtEgKyEps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LiitzDzFKcDArifDuu9UUKcSbklhZlVqUH19U mpNafIjRFOiqicxSosn5wOjMK4k3NLE0MjEwMzM0MjA2UxLnnRD4JUJIID2xJDU7NbUgtQim j4mDU6qB0fd6Is/alspvsaaL7tx6efzz8lzJjoV8S58s8LxzZ3lC9mWXtITbwgeYpvMuXH2i r35nS7f5kUtq91iZA6+9zez/82lVTfiGKc+d/Dnz7slGGpbUh518+mx+QbvrATb5qNm9G7pD gsO4jr543BBhkfL20C5+jXaXHl2d1/xRG3sZNtX+ydleo8RSnJFoqMVcVJwIABiRchCWAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170803082050epcas1p179818a40e214e4ab5884f8a3bca657f8 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170803082050epcas1p179818a40e214e4ab5884f8a3bca657f8 X-RootMTR: 20170803082050epcas1p179818a40e214e4ab5884f8a3bca657f8 References: <1501748448-26821-1-git-send-email-cw00.choi@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170803_012123_305565_D113FEDC X-CRM114-Status: GOOD ( 11.00 ) 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: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kishon@ti.com, cw00.choi@samsung.com, myungjoo.ham@samsung.com, chanwoo@kernel.org, linux-arm-kernel@lists.infradead.org, Raviteja Garimella 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_get_state() Cc: Raviteja Garimella Acked-by: Kishon Vijay Abraham I Signed-off-by: Chanwoo Choi --- drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c b/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c index 9ae59e223131..d099a0c8cee5 100644 --- a/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c +++ b/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c @@ -253,16 +253,16 @@ static void extcon_work(struct work_struct *work) vbus = gpiod_get_value_cansleep(driver->vbus_gpiod); if (!id && vbus) { /* Host connected */ - extcon_set_cable_state_(driver->edev, EXTCON_USB_HOST, true); + extcon_set_state_sync(driver->edev, EXTCON_USB_HOST, true); pr_debug("Host cable connected\n"); driver->data->new_state = EVT_HOST; connect_change(driver); } else if (id && !vbus) { /* Disconnected */ - extcon_set_cable_state_(driver->edev, EXTCON_USB_HOST, false); - extcon_set_cable_state_(driver->edev, EXTCON_USB, false); + extcon_set_state_sync(driver->edev, EXTCON_USB_HOST, false); + extcon_set_state_sync(driver->edev, EXTCON_USB, false); pr_debug("Cable disconnected\n"); } else if (id && vbus) { /* Device connected */ - extcon_set_cable_state_(driver->edev, EXTCON_USB, true); + extcon_set_state_sync(driver->edev, EXTCON_USB, true); pr_debug("Device cable connected\n"); driver->data->new_state = EVT_DEVICE; connect_change(driver);