Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723295 > unrolled thread

[PATCH] usb: imx21-hcd: make imx21_hc_driver const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-30 15:00 +0200
Last post2017-08-30 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] usb: imx21-hcd:  make imx21_hc_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-30 15:00 +0200

#1723295 — [PATCH] usb: imx21-hcd: make imx21_hc_driver const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-30 15:00 +0200
Subject[PATCH] usb: imx21-hcd: make imx21_hc_driver const
Message-ID<ukaL9-8rd-59@gated-at.bofh.it>
Make this const as it is not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/usb/host/imx21-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/imx21-hcd.c b/drivers/usb/host/imx21-hcd.c
index e25d72e..39ae7fb 100644
--- a/drivers/usb/host/imx21-hcd.c
+++ b/drivers/usb/host/imx21-hcd.c
@@ -1779,7 +1779,7 @@ static void imx21_hc_stop(struct usb_hcd *hcd)
 /* Driver glue		 			*/
 /* =========================================== */
 
-static struct hc_driver imx21_hc_driver = {
+static const struct hc_driver imx21_hc_driver = {
 	.description = hcd_name,
 	.product_desc = "IMX21 USB Host Controller",
 	.hcd_priv_size = sizeof(struct imx21),
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web