Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1699108
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Julia Lawall <Julia.Lawall@lip6.fr> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 07/11] isp116x-hcd: constify hc_driver structures |
| Date | Fri, 28 Jul 2017 23:10:02 +0200 |
| Message-ID | <u8kGe-C9-29@gated-at.bofh.it> (permalink) |
| References | <u8kGd-C9-5@gated-at.bofh.it> |
| X-Ironport-Av | E=Sophos;i="5.40,427,1496095200"; d="scan'208";a="233086942" |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 25 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | kernel-janitors@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Fri, 28 Jul 2017 22:41:54 +0200 |
| X-Original-Message-ID | <1501274518-25170-8-git-send-email-Julia.Lawall@lip6.fr> |
| X-Original-References | <1501274518-25170-1-git-send-email-Julia.Lawall@lip6.fr> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1699108 |
Show key headers only | View raw
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/usb/host/isp116x-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
index d089b3f..73fec38 100644
--- a/drivers/usb/host/isp116x-hcd.c
+++ b/drivers/usb/host/isp116x-hcd.c
@@ -1511,7 +1511,7 @@ static int isp116x_bus_resume(struct usb_hcd *hcd)
#endif
-static struct hc_driver isp116x_hc_driver = {
+static const struct hc_driver isp116x_hc_driver = {
.description = hcd_name,
.product_desc = "ISP116x Host Controller",
.hcd_priv_size = sizeof(struct isp116x),
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/11] constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 11/11] c67x00-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 01/11] isp1362-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 09/11] USB: whci-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 06/11] usb: renesas_usbhs: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
RE: [PATCH 06/11] usb: renesas_usbhs: constify hc_driver structures Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> - 2017-07-31 09:10 +0200
[PATCH 03/11] usb: r8a66597-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 07/11] isp116x-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 10/11] greybus: usb: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
Re: [greybus-dev] [PATCH 10/11] greybus: usb: constify hc_driver structures Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-31 06:30 +0200
Re: [PATCH 10/11] greybus: usb: constify hc_driver structures Johan Hovold <johan@kernel.org> - 2017-07-31 09:20 +0200
[PATCH 04/11] usb: host/sl811-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 05/11] usb: host: u132-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:10 +0200
[PATCH 02/11] usb: host: max3421-hcd: constify hc_driver structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-07-28 23:20 +0200
csiph-web