V4L/DVB (3380): TUV1236d: declare buffer as static const
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 27 Feb 2006 03:09:14 +0000 (00:09 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 27 Feb 2006 03:09:14 +0000 (00:09 -0300)
Make buffer a static const

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-cards.c
drivers/media/video/saa7134/saa7134-cards.c

index cc9d6601eafa10f5cbcc4daeee9026f8480708c1..44e27dc646aeb41c1d5d8477ad638aa29e64dd9f 100644 (file)
@@ -1487,7 +1487,7 @@ void cx88_card_setup(struct cx88_core *core)
                if (0 == core->i2c_rc) {
                        /* enable tuner */
                        int i;
-                       u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
+                       static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
                        core->i2c_client.addr = 0x0a;
 
                        for (i = 0; i < 5; i++)
index eaf32b81ccf8c5316a41556bff00c92f57cc48c7..ccf7231cde3e8bb60ad190a75ae2e5f07ed29c09 100644 (file)
@@ -3554,7 +3554,7 @@ int saa7134_board_init2(struct saa7134_dev *dev)
                {
                        /* enable tuner */
                        int i;
-                       u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
+                       static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
                        dev->i2c_client.addr = 0x0a;
                        for (i = 0; i < 5; i++)
                                if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))