提交 b9ee9ad7 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

V4L/DVB (3380): TUV1236d: declare buffer as static const

Make buffer a static const
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 44fd06fa
...@@ -1487,7 +1487,7 @@ void cx88_card_setup(struct cx88_core *core) ...@@ -1487,7 +1487,7 @@ void cx88_card_setup(struct cx88_core *core)
if (0 == core->i2c_rc) { if (0 == core->i2c_rc) {
/* enable tuner */ /* enable tuner */
int i; 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; core->i2c_client.addr = 0x0a;
for (i = 0; i < 5; i++) for (i = 0; i < 5; i++)
......
...@@ -3554,7 +3554,7 @@ int saa7134_board_init2(struct saa7134_dev *dev) ...@@ -3554,7 +3554,7 @@ int saa7134_board_init2(struct saa7134_dev *dev)
{ {
/* enable tuner */ /* enable tuner */
int i; 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; dev->i2c_client.addr = 0x0a;
for (i = 0; i < 5; i++) for (i = 0; i < 5; i++)
if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2)) if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册