diff options
author | Felipe Balbi <balbi@ti.com> | 2013-01-24 10:58:16 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-24 14:11:35 -0500 |
commit | eeef45876631a446eaedce16675f4ff344e16cf0 (patch) | |
tree | f5309827b77918b0af928e96d1922e1f6f95ddbe /drivers/usb/renesas_usbhs | |
parent | 449d04a977f63e6218d88312f9bd3cb53fb5d30b (diff) |
usb: gadget: constify all struct usb_gadget_ops
Add the missing 'const' keyword to all struct
usb_gadget_ops in the gadget framework.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index dd41f61893ef..809745072c11 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -905,7 +905,7 @@ static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) | |||
905 | return 0; | 905 | return 0; |
906 | } | 906 | } |
907 | 907 | ||
908 | static struct usb_gadget_ops usbhsg_gadget_ops = { | 908 | static const struct usb_gadget_ops usbhsg_gadget_ops = { |
909 | .get_frame = usbhsg_get_frame, | 909 | .get_frame = usbhsg_get_frame, |
910 | .set_selfpowered = usbhsg_set_selfpowered, | 910 | .set_selfpowered = usbhsg_set_selfpowered, |
911 | .udc_start = usbhsg_gadget_start, | 911 | .udc_start = usbhsg_gadget_start, |