From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750942AbdAPJMw (ORCPT ); Mon, 16 Jan 2017 04:12:52 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:61979 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884AbdAPJLO (ORCPT ); Mon, 16 Jan 2017 04:11:14 -0500 Subject: Re: [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API To: Chanwoo Choi , , References: <1483071089-8362-1-git-send-email-cw00.choi@samsung.com> <1483071089-8362-3-git-send-email-cw00.choi@samsung.com> CC: , , , From: Kishon Vijay Abraham I Message-ID: <587C8DC5.5040001@ti.com> Date: Mon, 16 Jan 2017 14:39:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1483071089-8362-3-git-send-email-cw00.choi@samsung.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 30 December 2016 09:41 AM, Chanwoo Choi wrote: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Cc: Kishon Vijay Abraham I > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Signed-off-by: Chanwoo Choi merged both the patches in this series. Thanks Kishon > --- > drivers/phy/phy-sun4i-usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c > index bf28a0fdd569..eae171e18043 100644 > --- a/drivers/phy/phy-sun4i-usb.c > +++ b/drivers/phy/phy-sun4i-usb.c > @@ -534,7 +534,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > mutex_unlock(&phy0->mutex); > > if (id_notify) { > - extcon_set_cable_state_(data->extcon, EXTCON_USB_HOST, > + extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, > !id_det); > /* When leaving host mode force end the session here */ > if (force_session_end && id_det == 1) { > @@ -547,7 +547,7 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work) > } > > if (vbus_notify) > - extcon_set_cable_state_(data->extcon, EXTCON_USB, vbus_det); > + extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); > > if (sun4i_usb_phy0_poll(data)) > queue_delayed_work(system_wq, &data->detect, POLL_TIME); >