From patchwork Thu Aug 3 08:20:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9878411 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 84BCE6037D for ; Thu, 3 Aug 2017 08:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FF0128867 for ; Thu, 3 Aug 2017 08:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64D3B28876; Thu, 3 Aug 2017 08:22:22 +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 5D9B428867 for ; Thu, 3 Aug 2017 08:22:21 +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=j2W5S+lOUPpEQxKMm2LV6w9c/iCNIfwmIMDgZ6yypQ8=; b=hHC/wmn+kRactikprWIq6Az/fz WeDFxLGwmzByPwoKE9/LZYU4KhjSOfoAAo4z0sEe7T1YcZtugsPz1IvwIaYeuffhIIi/Gd98y31o7 koj3B5xoh5aL+ijuZ7RkPzWKGlNi5QyLnI1q5+fyQv+Of23W9r9a3u0igr1Zw8YQpYjSc3mZKU0a0 N0bDwuEDGiTX7GjHf2V1VROxdjNhG5xRdUs9ob00bsqXuAy7skx7UjISVjdTqFgl5JQ7Vi4cNThpP vcnHQf6JjFDaMwVbZDNC0dryki8/UpwvtEQBHzNGvjpEsucfVunwoZRTRdxBscfaCSN46gGq4dFTq Ktqd7k+Q==; 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 1ddBOc-0005oy-Jj; Thu, 03 Aug 2017 08:22:18 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddBNj-0004yg-54 for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2017 08:21:27 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20170803082051epoutp03b763405dc9484faaaf1addd80fc9e65f~XSEJ6wiBF2170121701epoutp034; Thu, 3 Aug 2017 08:20:51 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.66]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170803082050epcas1p2566ba529304dc3e5fc4c5e29b6d362ab~XSEJqoZk60181101811epcas1p2o; Thu, 3 Aug 2017 08:20:50 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id FB.97.20246.2ECD2895; Thu, 3 Aug 2017 17:20:50 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170803082050epcas1p2491eedf2f26510f55cd15ce777356fce~XSEJXUpoi2483524835epcas1p2l; Thu, 3 Aug 2017 08:20:50 +0000 (GMT) X-AuditID: b6c32a37-f79886d000004f16-52-5982dce2d5fd Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id A0.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 4/5] usb: gadget: udc: Replace the deprecated extcon API Date: Thu, 03 Aug 2017 17:20:47 +0900 Message-id: <1501748448-26821-5-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+NgFrrBKsWRmVeSWpSXmKPExsWy7bCmge6jO02RBjP2GVoca3vCbjHxxhUW i+tfnrNaNC9ez2Zx4WkPm8Wmx9dYLS7vmsNmsWhZK7PF7cYVbBaNm7pYHbg8Zt0/y+axaVUn m8f+uWvYPTYvqffo27KK0eP4je1MHp83yQWwR6XaZKQmpqQWKaTmJeenZOal2yp5B8c7x5ua GRjqGlpamCsp5CXmptoqufgE6Lpl5gCdp6RQlphTChQKSCwuVtK3synKLy1JVcjILy6xVYo2 NDTSMzQw1zMyMtIzMY61MjIFKklIzXg/8QhLQRdPxa5f3g2M3VxdjJwcEgImEq/6rzJB2GIS F+6tZ+ti5OIQEtjBKHFt9U8WkISQwGdGiR+TUmEappxoZoUrevL+DpTzg1HiyqJdbCBVbAJa Evtf3ACzRQREJNqez2ACKWIW6GWSaDh4EmyfsIC3xIY5E5lBbBYBVYktL5vBGngFXCU+7N/M ArFOTuLDnkfsIDangJvEvXu/mEEGSQhMZ5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FTi4e240RgpxJpYVlyZe4hRgoNZSYR3362mSCHelMTKqtSi/Pii0pzU 4kOMpkBnTWSWEk3OB0ZnXkm8oYmlkYmBmZmhkYGxmZI474TALxFCAumJJanZqakFqUUwfUwc nFINjBOqou9LCsodU2g8NP1YgcTb3XsfJke/2sHjvoa5Ys0nF3aD2Mei9kJHJ3vuebCqv+r8 gZUPbm9YJyJ4bMeSao1ZU+YL9GnnCifFrndf/nHm44wTnx4Kfj/OHax1OkxhSf60K++u1vWV zpNRZ6mI/vfeaafrAd8DTS0Taxkv3LZe0BE2xWzhlv9KLMUZiYZazEXFiQDtv/g8lgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170803082050epcas1p2491eedf2f26510f55cd15ce777356fce 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: 20170803082050epcas1p2491eedf2f26510f55cd15ce777356fce X-RootMTR: 20170803082050epcas1p2491eedf2f26510f55cd15ce777356fce 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_505181_A0D702F6 X-CRM114-Status: GOOD ( 11.38 ) 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_get_cable_state_() -> extcon_get_state() Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Raviteja Garimella Signed-off-by: Chanwoo Choi Acked-by: Felipe Balbi --- drivers/usb/gadget/udc/snps_udc_plat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_plat.c b/drivers/usb/gadget/udc/snps_udc_plat.c index 2e11f19e07ae..0ce7b3ba60ff 100644 --- a/drivers/usb/gadget/udc/snps_udc_plat.c +++ b/drivers/usb/gadget/udc/snps_udc_plat.c @@ -184,7 +184,7 @@ static int udc_plat_probe(struct platform_device *pdev) goto exit_phy; } - ret = extcon_get_cable_state_(udc->edev, EXTCON_USB); + ret = extcon_get_state(udc->edev, EXTCON_USB); if (ret < 0) { dev_err(dev, "Can't get cable state\n"); goto exit_extcon; @@ -273,7 +273,7 @@ static int udc_plat_suspend(struct device *dev) udc = dev_get_drvdata(dev); stop_udc(udc); - if (extcon_get_cable_state_(udc->edev, EXTCON_USB) > 0) { + if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { dev_dbg(udc->dev, "device -> idle\n"); stop_udc(udc); } @@ -303,7 +303,7 @@ static int udc_plat_resume(struct device *dev) return ret; } - if (extcon_get_cable_state_(udc->edev, EXTCON_USB) > 0) { + if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { dev_dbg(udc->dev, "idle -> device\n"); start_udc(udc); }