Skip to contentSkip to conversation

usb: imx21-hcd: make imx21_hc_driver const

PATCH New Bhumika Goyal 1 participant 1 message Aug 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: imx21-hcd: make imx21_hc_driver const

Make this const as it is not modified anywhere.

---
 drivers/usb/host/imx21-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/imx21-hcd.c +1 -1
index e25d72e..39ae7fb 100644
@@ -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),
Signature · 1 line
1.9.1