Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756513AbcK3F6S (ORCPT ); Wed, 30 Nov 2016 00:58:18 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:60608 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754578AbcK3F5q (ORCPT ); Wed, 30 Nov 2016 00:57:46 -0500 X-AuditID: cbfee61a-f79916d0000062de-f1-583e6a55cfb2 From: Chanwoo Choi To: balbi@kernel.org, gregkh@linuxfoundation.org, kishon@ti.com, sre@kernel.org Cc: Peter.Chen@nxp.com, wens@csie.org, yoshihiro.shimoda.uh@renesas.com, maxime.ripard@free-electrons.com, b-liu@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, cw00.choi@samsung.com, chanwoo@kernel.org Subject: [PATCH 01/12] phy: rcar-gen3-usb2: Replace the deprecated extcon API Date: Wed, 30 Nov 2016 14:57:29 +0900 Message-id: <1480485460-2663-2-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1480485460-2663-1-git-send-email-cw00.choi@samsung.com> References: <1480485460-2663-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t9jAd3QLLsIg5M/DS3+31nEanGs7Qm7 xcQbV1gsrn95zmrRvHg9m8WFpz1sFpseX2O1uLxrDpvF7CX9LBafe48wWmx9+Y7JYtGyVmaL rZv2Mlv8uXeH1eL07hKLn4fOM1l83fuZzUHQY8Oj1aweTzZdZPTYtKqTzWP/3DXsHpuX1Hts fLeDyePbmYksHn1bVjF6HL+xncnj8ya5AK4oN5uM1MSU1CKF1Lzk/JTMvHRbpdAQN10LJYW8 xNxUW6UIXd+QICWFssScUiDPyAANODgHuAcr6dsluGV8XLGSveAdR8X2/WuYGhgvsXcxcnJI CJhIrJy1jRHCFpO4cG89WxcjF4eQwFJGiQ0/n7JAOD8YJf58esYEUsUmoCWx/8UNNhBbRMBf YkfjHLAiZoFHTBJXXm5nAUkIC/hK/O7YBWazCKhKnP70EaiZg4NXwEVi6WQdiG1yEh/2PGIH CXMKuEpM+p4CEhYCqlizcDHTBEbeBYwMqxglUguSC4qT0nMN81LL9YoTc4tL89L1kvNzNzGC o+yZ1A7Gg7vcDzEKcDAq8fBO6LONEGJNLCuuzD3EKMHBrCTC65ZmFyHEm5JYWZValB9fVJqT WnyI0RTorInMUqLJ+cAEkFcSb2hibmJubGBhbmlpYqQkzts4+1m4kEB6YklqdmpqQWoRTB8T B6dUA+OFqdtZlv5QrK26l2OZ6c3TfTL6jJu/g7Wg44KjSpxxbS2O8tdP9t37s7qA/febo+Yi DyZ8MLmlsyxk4eKmiV/2NH2YadW3orbm1W6x9dGbV8r89ds6zf7RyYtGkjXPz5zXyOK6N2lm +w6FpM6t8qKmSiLeE7bFTftSxVUdMU+Pa8K2eT07m5YosRRnJBpqMRcVJwIAoviHvcgCAAA= X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1102 Lines: 30 This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_set_state_sync() Signed-off-by: Chanwoo Choi --- 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 bd2430d7339c..7f8081f157f4 100644 --- a/drivers/phy/phy-rcar-gen3-usb2.c +++ b/drivers/phy/phy-rcar-gen3-usb2.c @@ -93,11 +93,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); } } -- 1.9.1