Commit 4f37fa54 authored by Johan Hovold's avatar Johan Hovold

USB: serial: constify static arrays

Declare three immutable static driver arrays as const.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 185fcb3f
...@@ -2839,7 +2839,7 @@ static int edge_startup(struct usb_serial *serial) ...@@ -2839,7 +2839,7 @@ static int edge_startup(struct usb_serial *serial)
bool interrupt_in_found; bool interrupt_in_found;
bool bulk_in_found; bool bulk_in_found;
bool bulk_out_found; bool bulk_out_found;
static __u32 descriptor[3] = { EDGE_COMPATIBILITY_MASK0, static const __u32 descriptor[3] = { EDGE_COMPATIBILITY_MASK0,
EDGE_COMPATIBILITY_MASK1, EDGE_COMPATIBILITY_MASK1,
EDGE_COMPATIBILITY_MASK2 }; EDGE_COMPATIBILITY_MASK2 };
......
...@@ -1408,7 +1408,7 @@ struct divisor_table_entry { ...@@ -1408,7 +1408,7 @@ struct divisor_table_entry {
/* Define table of divisors for moschip 7720 hardware * /* Define table of divisors for moschip 7720 hardware *
* These assume a 3.6864MHz crystal, the standard /16, and * * These assume a 3.6864MHz crystal, the standard /16, and *
* MCR.7 = 0. */ * MCR.7 = 0. */
static struct divisor_table_entry divisor_table[] = { static const struct divisor_table_entry divisor_table[] = {
{ 50, 2304}, { 50, 2304},
{ 110, 1047}, /* 2094.545455 => 230450 => .0217 % over */ { 110, 1047}, /* 2094.545455 => 230450 => .0217 % over */
{ 134, 857}, /* 1713.011152 => 230398.5 => .00065% under */ { 134, 857}, /* 1713.011152 => 230398.5 => .00065% under */
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define USB_DEBUG_MAX_PACKET_SIZE 8 #define USB_DEBUG_MAX_PACKET_SIZE 8
#define USB_DEBUG_BRK_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, 0x00,
0xff, 0xff,
0x01, 0x01,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment