From: Viresh Kumar <viresh.kumar@linaro.org>
To: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Johan Hovold <johan@kernel.org>,
devel@driverdev.osuosl.org, Alex Elder <elder@kernel.org>,
kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org,
greybus-dev@lists.linaro.org
Subject: Re: [greybus-dev] [PATCH 10/11] greybus: usb: constify hc_driver structures
Date: Mon, 31 Jul 2017 09:55:52 +0530 [thread overview]
Message-ID: <20170731042552.GC5804@vireshk-i7> (raw)
In-Reply-To: <1501274518-25170-11-git-send-email-Julia.Lawall@lip6.fr>
On 28-07-17, 22:41, Julia Lawall wrote:
> The hc_driver structure is only passed as the first argument to
> usb_create_hcd, which is declared as const. Thus the hc_driver structure
> itself can be const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> drivers/staging/greybus/usb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
> index ccadda0..f93a76d 100644
> --- a/drivers/staging/greybus/usb.c
> +++ b/drivers/staging/greybus/usb.c
> @@ -139,7 +139,7 @@ static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex,
> return ret;
> }
>
> -static struct hc_driver usb_gb_hc_driver = {
> +static const struct hc_driver usb_gb_hc_driver = {
> .description = "greybus-hcd",
> .product_desc = "Greybus USB Host Controller",
> .hcd_priv_size = sizeof(struct gb_usb_device),
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
next prev parent reply other threads:[~2017-07-31 4:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 20:41 [PATCH 00/11] " Julia Lawall
2017-07-28 20:41 ` [PATCH 01/11] isp1362-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 02/11] usb: host: max3421-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 03/11] usb: r8a66597-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 04/11] usb: host/sl811-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 05/11] usb: host: u132-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 06/11] usb: renesas_usbhs: " Julia Lawall
2017-07-31 7:07 ` Yoshihiro Shimoda
2017-07-28 20:41 ` [PATCH 07/11] isp116x-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 08/11] USB: HWA: " Julia Lawall
2017-07-28 20:41 ` [PATCH 09/11] USB: whci-hcd: " Julia Lawall
2017-07-28 20:41 ` [PATCH 10/11] greybus: usb: " Julia Lawall
2017-07-31 4:25 ` Viresh Kumar [this message]
2017-07-31 7:14 ` Johan Hovold
2017-07-28 20:41 ` [PATCH 11/11] c67x00-hcd: " Julia Lawall
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=20170731042552.GC5804@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=Julia.Lawall@lip6.fr \
--cc=devel@driverdev.osuosl.org \
--cc=elder@kernel.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®