diff options
| author | Julia Lawall <julia.lawall@lip6.fr> | 2015-11-28 10:07:10 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-01 17:36:29 -0500 |
| commit | 6fb8ac81cb3125aafc7136f2ef0145da792bab94 (patch) | |
| tree | 658a64aea6b59cd981189be05bde09231286a51c /include/linux/usb | |
| parent | c7c7806700e15ca9c48d880f8c65071f041cd890 (diff) | |
USB: constify usb_mon_operations structure
The usb_mon_operations structure is never modified, so declare it as 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 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/hcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index f89c24bd53a4..4dcf8446dbcd 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h | |||
| @@ -660,7 +660,7 @@ struct usb_mon_operations { | |||
| 660 | /* void (*urb_unlink)(struct usb_bus *bus, struct urb *urb); */ | 660 | /* void (*urb_unlink)(struct usb_bus *bus, struct urb *urb); */ |
| 661 | }; | 661 | }; |
| 662 | 662 | ||
| 663 | extern struct usb_mon_operations *mon_ops; | 663 | extern const struct usb_mon_operations *mon_ops; |
| 664 | 664 | ||
| 665 | static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) | 665 | static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) |
| 666 | { | 666 | { |
| @@ -682,7 +682,7 @@ static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, | |||
| 682 | (*mon_ops->urb_complete)(bus, urb, status); | 682 | (*mon_ops->urb_complete)(bus, urb, status); |
| 683 | } | 683 | } |
| 684 | 684 | ||
| 685 | int usb_mon_register(struct usb_mon_operations *ops); | 685 | int usb_mon_register(const struct usb_mon_operations *ops); |
| 686 | void usb_mon_deregister(void); | 686 | void usb_mon_deregister(void); |
| 687 | 687 | ||
| 688 | #else | 688 | #else |
