From patchwork Mon Jul 17 01:20:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9843805 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 C61EF60392 for ; Mon, 17 Jul 2017 01:21:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7C572810E for ; Mon, 17 Jul 2017 01:21:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC7B0283A5; Mon, 17 Jul 2017 01:21:35 +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 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 09C862832B for ; Mon, 17 Jul 2017 01:21:34 +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=rnlp4B4kOpvjHgglbup22K8WFFnwlV7u66EDD3CnvwA=; b=Md0WZSO1CmXpSVZ/hbiWcSsYUM NNjMvO4R8yJVKvDIem/EQGfPDhUd86MyL2qJ2puj7MYuaUpZSimeKFnwZJXtL2LYGnjogCo4KrAja QbGA1LOCC38Jt/FFdS+qCzQGLwjTq3cNFV5M506fRkSoRX/ea62FOco/j2BdVhu8JSynZ1LGnlbrB EtlWkB4ruP0LeXxyvw4LdDgCnpZSN97lxaO+fY8OEcZJpJdiQmuCEImOhojbOZPU0PpPaT60AS5Ly FTPRQD9Eq9doQeH2v0+LdPugm6/9d8Nnj8iDmh0j4fdWidrJYwH39yPPYtiCe5Peqz1GZxl3OdDfP aXy2+TZA==; 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 1dWuj4-00087u-7M; Mon, 17 Jul 2017 01:21:30 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dWuiy-000858-Pp for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2017 01:21:27 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170717012059epoutp040c18f176af8e2b9e6a4d260cddd476fb~R_XtX7U3K0769807698epoutp04Y; Mon, 17 Jul 2017 01:20:59 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.40.70]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170717012058epcas1p47945d74335089fecd2348f325a76ad47~R_Xs7Czwz2674626746epcas1p4P; Mon, 17 Jul 2017 01:20:58 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id C3.1C.06732.AF01C695; Mon, 17 Jul 2017 10:20:58 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170717012058epcas1p10b22154ffb2184cae7453a8b557dbcca~R_Xss4Guw2039520395epcas1p12; Mon, 17 Jul 2017 01:20:58 +0000 (GMT) X-AuditID: b6c32a39-f794b6d000001a4c-e5-596c10fae2a5 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 63.E5.05076.AF01C695; Mon, 17 Jul 2017 10:20:58 +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 <0OT7001NHNQX1OA0@mmp1.samsung.com>; Mon, 17 Jul 2017 10:20:57 +0900 (KST) From: Chanwoo Choi To: kishon@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 3/5] phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API Date: Mon, 17 Jul 2017 10:20:54 +0900 Message-id: <1500254456-6525-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1500254456-6525-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGKsWRmVeSWpSXmKPExsWy7bCmvu4vgZxIgzdf5S2OtT1ht5h44wqL xfUvz1ktmhevZ7O48LSHzWLT42usFpd3zWGzWLSsldniduMKNovGTV2sDlwes+6fZfPYtKqT zWP/3DXsHpuX1Hv0bVnF6HH8xnYmj8+b5ALYo1JtMlITU1KLFFLzkvNTMvPSbZW8g+Od403N DAx1DS0tzJUU8hJzU22VXHwCdN0yc4DOU1IoS8wpBQoFJBYXK+nb2RTll5akKmTkF5fYKkUb GhrpGRqY6xkZGemZGMdaGZkClSSkZqw9e5ypoIO34sqW2gbG5dxdjJwcEgImEvseXWSGsMUk Ltxbz9bFyMUhJLCDUaJpxmqwhJDAZ0aJGSvtYRpeH3qPULTn6jQWCOcHo8TVA1tYQKrYBLQk 9r+4AVTFwSEiYC+x+V0WSA2zwCNGiVmnO8CmCgsESpza95EdpIZFQFVi29MIkDCvgIvE4h8n WSCWyUl82POIHcTmFHCVOP/1BCvIHAm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7IzkrUog1say4MvcQowQHs5IIrxpvTqQQb0piZVVqUX58UWlOavEhRlOgSyYyS4km 5wPjL68k3tDE0sjEwMzM0MjA2ExJnHdC4JcIIYH0xJLU7NTUgtQimD4mDk6pBsYtbzoT1wav Pe9y/+nRib9N9yRuVY3bPzWS1b3B1fKzW3umiLF5l9ilvV6pzknuFysa1P95F16/uemdwoUK b8vUlZLFjEvFVZ/aLNi7eNYblcu3tjSxzBG6rSJ0c1FB3O4768xW6arxveJfoGzHF56T/frO t+VZiZbzpBgjvxtk6f2wSEqLmK7EUpyRaKjFXFScCACT6vDqhwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170717012058epcas1p10b22154ffb2184cae7453a8b557dbcca 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: 20170717012058epcas1p10b22154ffb2184cae7453a8b557dbcca X-RootMTR: 20170717012058epcas1p10b22154ffb2184cae7453a8b557dbcca References: <1500254456-6525-1-git-send-email-cw00.choi@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170716_182124_986540_F9675A20 X-CRM114-Status: GOOD ( 10.52 ) 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: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, 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: Kishon Vijay Abraham I Cc: Raviteja Garimella Signed-off-by: Chanwoo Choi Acked-by: Kishon Vijay Abraham I --- 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);