diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-07-24 16:31:58 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-07-24 16:31:58 +0000 |
commit | d6c137977ba098ca4c2f6b8abca786006536ac8a (patch) | |
tree | c619677c23b0baac55bdc0a79f442665643162d8 /linux/drivers/media/dvb/frontends/lgdt3302.c | |
parent | b66085a762a9e94bb16ee9fc96381dcb4713a46a (diff) | |
download | mediapointer-dvb-s2-d6c137977ba098ca4c2f6b8abca786006536ac8a.tar.gz mediapointer-dvb-s2-d6c137977ba098ca4c2f6b8abca786006536ac8a.tar.bz2 |
gcc-2.95 compile fix
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt3302.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt3302.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.c b/linux/drivers/media/dvb/frontends/lgdt3302.c index c3b8d4e08..b153da47c 100644 --- a/linux/drivers/media/dvb/frontends/lgdt3302.c +++ b/linux/drivers/media/dvb/frontends/lgdt3302.c @@ -291,13 +291,11 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe, /* Change only if we are actually changing the channel */ if (state->current_frequency != param->frequency) { u8 buf[5]; + struct i2c_msg msg = { .flags = 0, .buf = &buf[1], .len = 4 }; + int err; - /* This must be done before the initialized msg is declared */ state->config->pll_set(fe, param, buf); - - struct i2c_msg msg = - { .addr = buf[0], .flags = 0, .buf = &buf[1], .len = 4 }; - int err; + msg.addr = buf[0]; dprintk("%s: tuner at 0x%02x bytes: 0x%02x 0x%02x " "0x%02x 0x%02x\n", __FUNCTION__, |