aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_edgeport.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-04-18 14:42:28 +0200
committerJohan Hovold <johan@kernel.org>2017-04-19 09:45:43 +0200
commit4f37fa549d0de7aee547783752e70f877a49b0c9 (patch)
tree298be91a12e0e9dbe5a9e82b34b5d86657aa32b1 /drivers/usb/serial/io_edgeport.c
parentUSB: serial: quatech2: drop redundant tty_buffer_request_room (diff)
downloadlinux-dev-4f37fa549d0de7aee547783752e70f877a49b0c9.tar.xz
linux-dev-4f37fa549d0de7aee547783752e70f877a49b0c9.zip
USB: serial: constify static arrays
Declare three immutable static driver arrays as const. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
-rw-r--r--drivers/usb/serial/io_edgeport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c
index e5d6265eac6e..bdf8bd814a9a 100644
--- a/drivers/usb/serial/io_edgeport.c
+++ b/drivers/usb/serial/io_edgeport.c
@@ -2839,9 +2839,9 @@ static int edge_startup(struct usb_serial *serial)
bool interrupt_in_found;
bool bulk_in_found;
bool bulk_out_found;
- static __u32 descriptor[3] = { EDGE_COMPATIBILITY_MASK0,
- EDGE_COMPATIBILITY_MASK1,
- EDGE_COMPATIBILITY_MASK2 };
+ static const __u32 descriptor[3] = { EDGE_COMPATIBILITY_MASK0,
+ EDGE_COMPATIBILITY_MASK1,
+ EDGE_COMPATIBILITY_MASK2 };
dev = serial->dev;