From: Vivek Gautam <gautam.vivek@samsung.com> To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, balbi@ti.com, kgene.kim@samsung.com, k.debski@samsung.com, jg1.han@samsung.com, Vivek Gautam <gautam.vivek@samsung.com>, Alan Stern <stern@rowland.harvard.edu> Subject: [PATCH v2 2/4] usb: ehci-exynos: Use struct device instead of platform_device Date: Wed, 30 Apr 2014 10:49:50 +0530 [thread overview] Message-ID: <1398835192-21634-2-git-send-email-gautam.vivek@samsung.com> (raw) In-Reply-To: <1398835192-21634-1-git-send-email-gautam.vivek@samsung.com> Change to use struct device instead of struct platform_device for some static functions. Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com> Cc: Alan Stern <stern@rowland.harvard.edu> Acked-by: Jingoo Han <jg1.han@samsung.com> --- Changes from v1: - none drivers/usb/host/ehci-exynos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 7f425ac..4d763dc 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -50,9 +50,8 @@ struct exynos_ehci_hcd { #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) -static void exynos_setup_vbus_gpio(struct platform_device *pdev) +static void exynos_setup_vbus_gpio(struct device *dev) { - struct device *dev = &pdev->dev; int err; int gpio; @@ -88,7 +87,7 @@ static int exynos_ehci_probe(struct platform_device *pdev) if (err) return err; - exynos_setup_vbus_gpio(pdev); + exynos_setup_vbus_gpio(&pdev->dev); hcd = usb_create_hcd(&exynos_ehci_hc_driver, &pdev->dev, dev_name(&pdev->dev)); -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: gautam.vivek@samsung.com (Vivek Gautam) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/4] usb: ehci-exynos: Use struct device instead of platform_device Date: Wed, 30 Apr 2014 10:49:50 +0530 [thread overview] Message-ID: <1398835192-21634-2-git-send-email-gautam.vivek@samsung.com> (raw) In-Reply-To: <1398835192-21634-1-git-send-email-gautam.vivek@samsung.com> Change to use struct device instead of struct platform_device for some static functions. Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com> Cc: Alan Stern <stern@rowland.harvard.edu> Acked-by: Jingoo Han <jg1.han@samsung.com> --- Changes from v1: - none drivers/usb/host/ehci-exynos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 7f425ac..4d763dc 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -50,9 +50,8 @@ struct exynos_ehci_hcd { #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) -static void exynos_setup_vbus_gpio(struct platform_device *pdev) +static void exynos_setup_vbus_gpio(struct device *dev) { - struct device *dev = &pdev->dev; int err; int gpio; @@ -88,7 +87,7 @@ static int exynos_ehci_probe(struct platform_device *pdev) if (err) return err; - exynos_setup_vbus_gpio(pdev); + exynos_setup_vbus_gpio(&pdev->dev); hcd = usb_create_hcd(&exynos_ehci_hc_driver, &pdev->dev, dev_name(&pdev->dev)); -- 1.7.10.4
next prev parent reply other threads:[~2014-04-30 5:20 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-04-30 5:19 [PATCH v2 1/4] usb: ohci-exynos: Use struct device instead of platform_device Vivek Gautam 2014-04-30 5:19 ` Vivek Gautam 2014-04-30 5:19 ` Vivek Gautam [this message] 2014-04-30 5:19 ` [PATCH v2 2/4] usb: ehci-exynos: " Vivek Gautam 2014-04-30 5:19 ` [PATCH v4 3/4] usb: ohci-exynos: Add facility to use phy provided by the generic phy framework Vivek Gautam 2014-04-30 5:19 ` Vivek Gautam 2014-05-01 17:16 ` Tomasz Figa 2014-05-01 17:16 ` Tomasz Figa 2014-05-02 9:25 ` Vivek Gautam 2014-05-02 9:25 ` Vivek Gautam 2014-05-02 9:25 ` Vivek Gautam 2014-05-02 10:36 ` Vivek Gautam 2014-05-02 10:36 ` Vivek Gautam 2014-05-02 10:36 ` Vivek Gautam 2014-04-30 5:19 ` [PATCH v10 4/4] usb: ehci-exynos: Change " Vivek Gautam 2014-04-30 5:19 ` Vivek Gautam 2014-04-30 5:19 ` Vivek Gautam 2014-05-01 17:17 ` Tomasz Figa 2014-05-01 17:17 ` Tomasz Figa 2014-05-01 14:26 ` [PATCH v2 1/4] usb: ohci-exynos: Use struct device instead of platform_device Alan Stern 2014-05-01 14:26 ` Alan Stern 2014-05-01 14:26 ` Alan Stern
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=1398835192-21634-2-git-send-email-gautam.vivek@samsung.com \ --to=gautam.vivek@samsung.com \ --cc=balbi@ti.com \ --cc=devicetree@vger.kernel.org \ --cc=gregkh@linuxfoundation.org \ --cc=jg1.han@samsung.com \ --cc=k.debski@samsung.com \ --cc=kgene.kim@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-doc@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=stern@rowland.harvard.edu \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.