diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-02-26 22:09:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-26 22:09:14 -0500 |
commit | b9ee9ad7cb91301aae0fc12e11f79ba119c133d9 (patch) | |
tree | c36ffb3427570b6872f16715ce3b122a4aaddd43 /drivers | |
parent | 44fd06fa9002c42b367c152594cc95b7632c081d (diff) |
V4L/DVB (3380): TUV1236d: declare buffer as static const
Make buffer a static const
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-cards.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index cc9d6601eafa..44e27dc646ae 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -1487,7 +1487,7 @@ void cx88_card_setup(struct cx88_core *core) | |||
1487 | if (0 == core->i2c_rc) { | 1487 | if (0 == core->i2c_rc) { |
1488 | /* enable tuner */ | 1488 | /* enable tuner */ |
1489 | int i; | 1489 | int i; |
1490 | u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; | 1490 | static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; |
1491 | core->i2c_client.addr = 0x0a; | 1491 | core->i2c_client.addr = 0x0a; |
1492 | 1492 | ||
1493 | for (i = 0; i < 5; i++) | 1493 | for (i = 0; i < 5; i++) |
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c index eaf32b81ccf8..ccf7231cde3e 100644 --- a/drivers/media/video/saa7134/saa7134-cards.c +++ b/drivers/media/video/saa7134/saa7134-cards.c | |||
@@ -3554,7 +3554,7 @@ int saa7134_board_init2(struct saa7134_dev *dev) | |||
3554 | { | 3554 | { |
3555 | /* enable tuner */ | 3555 | /* enable tuner */ |
3556 | int i; | 3556 | int i; |
3557 | u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; | 3557 | static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; |
3558 | dev->i2c_client.addr = 0x0a; | 3558 | dev->i2c_client.addr = 0x0a; |
3559 | for (i = 0; i < 5; i++) | 3559 | for (i = 0; i < 5; i++) |
3560 | if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2)) | 3560 | if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2)) |