aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/class/cdc-acm.c2
-rw-r--r--drivers/usb/gadget/serial.c2
-rw-r--r--drivers/usb/serial/usb-serial.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index ca90326f2f5c..71288295df2f 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1120,7 +1120,7 @@ static struct usb_driver acm_driver = {
1120 * TTY driver structures. 1120 * TTY driver structures.
1121 */ 1121 */
1122 1122
1123static struct tty_operations acm_ops = { 1123static const struct tty_operations acm_ops = {
1124 .open = acm_tty_open, 1124 .open = acm_tty_open,
1125 .close = acm_tty_close, 1125 .close = acm_tty_close,
1126 .write = acm_tty_write, 1126 .write = acm_tty_write,
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c
index b893e3118e1b..489a85e58bca 100644
--- a/drivers/usb/gadget/serial.c
+++ b/drivers/usb/gadget/serial.c
@@ -271,7 +271,7 @@ static unsigned int use_acm = GS_DEFAULT_USE_ACM;
271 271
272 272
273/* tty driver struct */ 273/* tty driver struct */
274static struct tty_operations gs_tty_ops = { 274static const struct tty_operations gs_tty_ops = {
275 .open = gs_open, 275 .open = gs_open,
276 .close = gs_close, 276 .close = gs_close,
277 .write = gs_write, 277 .write = gs_write,
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index 0222d92842b8..8006e51c34bb 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -1015,7 +1015,7 @@ void usb_serial_disconnect(struct usb_interface *interface)
1015 dev_info(dev, "device disconnected\n"); 1015 dev_info(dev, "device disconnected\n");
1016} 1016}
1017 1017
1018static struct tty_operations serial_ops = { 1018static const struct tty_operations serial_ops = {
1019 .open = serial_open, 1019 .open = serial_open,
1020 .close = serial_close, 1020 .close = serial_close,
1021 .write = serial_write, 1021 .write = serial_write,