diff options
author | Johan Hovold <johan@kernel.org> | 2017-04-18 14:42:28 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-04-19 09:45:43 +0200 |
commit | 4f37fa549d0de7aee547783752e70f877a49b0c9 (patch) | |
tree | 298be91a12e0e9dbe5a9e82b34b5d86657aa32b1 /drivers/usb/serial/usb_debug.c | |
parent | USB: serial: quatech2: drop redundant tty_buffer_request_room (diff) | |
download | linux-4f37fa549d0de7aee547783752e70f877a49b0c9.tar.xz 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.c | 2 |
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, |