From mboxrd@z Thu Jan 1 00:00:00 1970 From: cw00.choi@samsung.com (Chanwoo Choi) Date: Tue, 06 Dec 2016 09:25:25 +0900 Subject: [PATCH 01/12] phy: rcar-gen3-usb2: Replace the deprecated extcon API In-Reply-To: <1480485460-2663-2-git-send-email-cw00.choi@samsung.com> References: <1480485460-2663-1-git-send-email-cw00.choi@samsung.com> <1480485460-2663-2-git-send-email-cw00.choi@samsung.com> Message-ID: <58460575.8030008@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Kishon, Could you review and pick the patch1/2 for phy driver? Best Regards, Chanwoo Choi On 2016? 11? 30? 14:57, Chanwoo Choi wrote: > 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); > } > } > >