[media] radio-usb-si4713: make array of structs const
[firefly-linux-kernel-4.4.55.git] / drivers / media / radio / si4713 / radio-usb-si4713.c
index f1e640d71188384cb69dd73f1156094b975e4e4c..86502b2786d06cd9abef8fcbe104fbde881439a3 100644 (file)
@@ -223,7 +223,7 @@ struct si4713_start_seq_table {
  * (0x03): Get serial number of the board (Response : CB000-00-00)
  * (0x06, 0x03, 0x03, 0x08, 0x01, 0x0f) : Get Component revision
  */
-struct si4713_start_seq_table start_seq[] = {
+static const struct si4713_start_seq_table start_seq[] = {
 
        { 1, { 0x03 } },
        { 2, { 0x32, 0x7f } },
@@ -261,7 +261,7 @@ static int si4713_start_seq(struct si4713_usb_device *radio)
 
        for (i = 0; i < ARRAY_SIZE(start_seq); i++) {
                int len = start_seq[i].len;
-               u8 *payload = start_seq[i].payload;
+               const u8 *payload = start_seq[i].payload;
 
                memcpy(radio->buffer + 1, payload, len);
                memset(radio->buffer + len + 1, 0, BUFFER_LENGTH - 1 - len);
@@ -288,7 +288,7 @@ struct si4713_command_table {
  *     Byte 4 : Number of arguments + 1 (for the command byte)
  *     Byte 5 : Number of response bytes
  */
-struct si4713_command_table command_table[] = {
+static struct si4713_command_table command_table[] = {
 
        { SI4713_CMD_POWER_UP,          { 0x00, SI4713_PWUP_NARGS + 1, SI4713_PWUP_NRESP} },
        { SI4713_CMD_GET_REV,           { 0x03, 0x01, SI4713_GETREV_NRESP } },