Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756929AbcK3GAA (ORCPT ); Wed, 30 Nov 2016 01:00:00 -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 S1756457AbcK3F6N (ORCPT ); Wed, 30 Nov 2016 00:58:13 -0500 X-AuditID: cbfee61a-f79916d0000062de-f9-583e6a579ab4 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 12/12] usb: renesas_usbhs: Replace the deprecated extcon API Date: Wed, 30 Nov 2016 14:57:40 +0900 Message-id: <1480485460-2663-13-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+NgFtrCIsWRmVeSWpSXmKPExsVy+t9jAd3wLLsIgxVb5Sz+31nEanGs7Qm7 xcQbV1gsrn95zmrRvHg9m8WFpz1sFpseX2O1uLxrDpvF7CX9LBafe48wWmx9+Y7JYtGyVmaL rZv2Mlv8uXeH1eL07hKLn4fOM1l83fuZzUHQY8Oj1aweTzZdZPTYtKqTzWP/3DXsHpuX1Hts fLeDyePbmYksHn1bVjF6HL+xncnj8ya5AK4oN5uM1MSU1CKF1Lzk/JTMvHRbpdAQN10LJYW8 xNxUW6UIXd+QICWFssScUiDPyAANODgHuAcr6dsluGXMXTaNseA6W8XtrV2MDYwnWLsYOTgk BEwk3u5j62LkBDLFJC7cWw9mCwksZZQ41SrVxcgFZP9glJjYfZkJJMEmoCWx/8UNsCIRAX+J HY1zWECKmAUeMUlcebmdBSQhLOAjceLsCnYQm0VAVWLZ7GWMIDavgKvEnEttLBDb5CQ+7HnE DnIEJ1B80vcUiMUuEmsWLmaawMi7gJFhFaNEakFyQXFSeq5hXmq5XnFibnFpXrpecn7uJkZw jD2T2sF4cJf7IUYBDkYlHt4JfbYRQqyJZcWVuYcYJTiYlUR43dLsIoR4UxIrq1KL8uOLSnNS iw8xmgLdNZFZSjQ5Hxj/eSXxhibmJubGBhbmlpYmRkrivI2zn4ULCaQnlqRmp6YWpBbB9DFx cEo1ME7Lz/SpX3lsclJwfb/Vt/LVN94H3vjYJKmzMyXOc9Lxnq2Cvy4/mqdz2PRWKZf9+38X b/wMPL7w1vnptm8TbC8KHzno1CMksWH28a9tQU+6DSJS1j/ryOt4ZXzQ97J8wEH960WzeH/M jK690Rre+vUhR796wM8u9Vtank+TSjNdlD+W/Cx0kFRiKc5INNRiLipOBAA7hLcxxwIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 23 This patch replaces the deprecated extcon API as following: - extcon_get_cable_state_() -> extcon_get_state() Signed-off-by: Chanwoo Choi --- drivers/usb/renesas_usbhs/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 012a37aa3e0d..623c51300393 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -389,7 +389,7 @@ static void usbhsc_hotplug(struct usbhs_priv *priv) if (enable && !mod) { if (priv->edev) { - cable = extcon_get_cable_state_(priv->edev, EXTCON_USB_HOST); + cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); if ((cable > 0 && id != USBHS_HOST) || (!cable && id != USBHS_GADGET)) { dev_info(&pdev->dev, -- 1.9.1