summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-07-28 22:41:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-30 07:26:51 -0700
commitd67910247f53434aa2437de93bb275c61dd62da8 (patch)
tree9e784a83f7607af1b65cc39d27ca3f025fdfbde6 /drivers
parentf5c215e2d42123fdb130dfd3ab85a402bd8c1a59 (diff)
downloadlinux-stable-d67910247f53434aa2437de93bb275c61dd62da8.tar.gz
linux-stable-d67910247f53434aa2437de93bb275c61dd62da8.tar.bz2
linux-stable-d67910247f53434aa2437de93bb275c61dd62da8.zip
usb: host/sl811-hcd: constify hc_driver structures
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/sl811-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index fd2a11473be7..24ad1d6cec25 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -1554,7 +1554,7 @@ sl811h_start(struct usb_hcd *hcd)
/*-------------------------------------------------------------------------*/
-static struct hc_driver sl811h_hc_driver = {
+static const struct hc_driver sl811h_hc_driver = {
.description = hcd_name,
.hcd_priv_size = sizeof(struct sl811),