diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-02-19 10:27:14 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-02-19 10:27:14 -0500 |
commit | cab58d54e58501cec502c87030cf2f7c353e6f58 (patch) | |
tree | c86bee7849cc5e9c24f037721bc75a0db60c0469 /linux/drivers | |
parent | eeaa22858ac00b68bd5fe46af679dd5ffabeb5ce (diff) | |
download | mediapointer-dvb-s2-cab58d54e58501cec502c87030cf2f7c353e6f58.tar.gz mediapointer-dvb-s2-cab58d54e58501cec502c87030cf2f7c353e6f58.tar.bz2 |
TUV1236d: declare buffer as static const
From: Michael Krufky <mkrufky@linuxtv.org>
On 2/17/06, Darren Salt <linux@youmustbejoking.demon.co.uk> wrote:
> + u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
> Shouldn't buffer be declared static const?
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-cards.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-cards.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-cards.c b/linux/drivers/media/video/cx88/cx88-cards.c index d15bac0fd..c2eb5b3ea 100644 --- a/linux/drivers/media/video/cx88/cx88-cards.c +++ b/linux/drivers/media/video/cx88/cx88-cards.c @@ -1500,7 +1500,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++) diff --git a/linux/drivers/media/video/saa7134/saa7134-cards.c b/linux/drivers/media/video/saa7134/saa7134-cards.c index 3963ac2d1..17f71932a 100644 --- a/linux/drivers/media/video/saa7134/saa7134-cards.c +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c @@ -3596,7 +3596,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)) |