summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb_debug.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/usb_debug.c
parent185fcb3fbe6d32d894b8b72429622d91c59b10f6 (diff)
downloadblackbird-op-linux-4f37fa549d0de7aee547783752e70f877a49b0c9.tar.gz
blackbird-op-linux-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/usb_debug.c')
-rw-r--r--drivers/usb/serial/usb_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/usb_debug.c
index ca2fa5bbe17e..d210eff4cd33 100644
--- a/drivers/usb/serial/usb_debug.c
+++ b/drivers/usb/serial/usb_debug.c
@@ -17,7 +17,7 @@
#define USB_DEBUG_MAX_PACKET_SIZE 8
#define USB_DEBUG_BRK_SIZE 8
-static char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = {
+static const char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = {
0x00,
0xff,
0x01,
OpenPOWER on IntegriCloud