mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Chanwoo Choi <cw00.choi@samsung.com>, <balbi@kernel.org>,
	<gregkh@linuxfoundation.org>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-usb@vger.kernel.org>, <chanwoo@kernel.org>,
	<myungjoo.ham@samsung.com>,
	Raviteja Garimella <raviteja.garimella@broadcom.com>
Subject: Re: [PATCH 3/5] phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API
Date: Wed, 2 Aug 2017 10:42:31 +0530	[thread overview]
Message-ID: <2c5b20ab-a1cd-f7c0-12e7-2cc338a84bfc@ti.com> (raw)
In-Reply-To: <1500254456-6525-4-git-send-email-cw00.choi@samsung.com>



On Monday 17 July 2017 06:50 AM, Chanwoo Choi wrote:
> This patch replaces the deprecated extcon API as following:
> - extcon_set_cable_state_() -> extcon_get_state()
> 
> Cc: Kishon Vijay Abraham I <kishon@ti.com>
> Cc: Raviteja Garimella <raviteja.garimella@broadcom.com>
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
> ---
>  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);
> 

  reply	other threads:[~2017-08-02  5:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170717012057epcas1p11fe3d445ed16c7f94b57922b0a8f243a@epcas1p1.samsung.com>
2017-07-17  1:20 ` [PATCH 0/5] phy: " Chanwoo Choi
     [not found]   ` <CGME20170717012058epcas1p181ca458cd4c80643ee7077e9ee78f7bb@epcas1p1.samsung.com>
2017-07-17  1:20     ` [PATCH 1/5] phy: qcom-usb-hs: Replace the " Chanwoo Choi
     [not found]   ` <CGME20170717012058epcas1p157e9a296eb5e415ae24bb51a1e6026db@epcas1p1.samsung.com>
2017-07-17  1:20     ` [PATCH 2/5] phy: rockchip-inno-usb2: " Chanwoo Choi
2017-08-02  5:12       ` Kishon Vijay Abraham I
2017-08-03  8:11         ` Chanwoo Choi
     [not found]   ` <CGME20170717012058epcas1p10b22154ffb2184cae7453a8b557dbcca@epcas1p1.samsung.com>
2017-07-17  1:20     ` [PATCH 3/5] phy: phy-bcm-ns2-usbdrd: Replace the deprecated " Chanwoo Choi
2017-08-02  5:12       ` Kishon Vijay Abraham I [this message]
     [not found]   ` <CGME20170717012058epcas1p1080175f81148a406fcc9713d490fc894@epcas1p1.samsung.com>
2017-07-17  1:20     ` [PATCH 4/5] usb: gadget: udc: " Chanwoo Choi
     [not found]   ` <CGME20170717012058epcas1p136b3a1e55ec313d68b941bc34a8f0779@epcas1p1.samsung.com>
2017-07-17  1:20     ` [PATCH 5/5] extcon: Remove deprecated extcon_set/get_cable_state_() Chanwoo Choi
2017-07-31  1:48   ` [PATCH 0/5] phy: Replace the deprecated extcon API Chanwoo Choi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c5b20ab-a1cd-f7c0-12e7-2cc338a84bfc@ti.com \
    --to=kishon@ti.com \
    --cc=balbi@kernel.org \
    --cc=chanwoo@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=raviteja.garimella@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®