summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/dib3000mb.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2004-12-02 18:02:29 +0000
committerPatrick Boettcher <devnull@localhost>2004-12-02 18:02:29 +0000
commit3798b42fad1ba009d1dd41652e88c4e488b15bf1 (patch)
tree23a34dc0574c5834aa409e99f036482a3e3e5956 /linux/drivers/media/dvb/frontends/dib3000mb.c
parent7e603b49663feb3eb48364641562489c3373b1b0 (diff)
downloadmediapointer-dvb-s2-3798b42fad1ba009d1dd41652e88c4e488b15bf1.tar.gz
mediapointer-dvb-s2-3798b42fad1ba009d1dd41652e88c4e488b15bf1.tar.bz2
- prepared support for dynamically i2c addresses of the demod
- added license information for the dib3000-common module
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dib3000mb.c')
-rw-r--r--linux/drivers/media/dvb/frontends/dib3000mb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mb.c b/linux/drivers/media/dvb/frontends/dib3000mb.c
index 1cd0aa32c..0131ec4eb 100644
--- a/linux/drivers/media/dvb/frontends/dib3000mb.c
+++ b/linux/drivers/media/dvb/frontends/dib3000mb.c
@@ -61,10 +61,10 @@ static int dib3000mb_set_frontend(struct dvb_frontend* fe,
if (tuner) {
wr(DIB3000MB_REG_TUNER,
- DIB3000_TUNER_WRITE_ENABLE(state->config->pll_addr));
- state->config->pll_set(fe, fep);
+ DIB3000_TUNER_WRITE_ENABLE(state->config.pll_addr));
+ state->config.pll_set(fe, fep);
wr(DIB3000MB_REG_TUNER,
- DIB3000_TUNER_WRITE_DISABLE(state->config->pll_addr));
+ DIB3000_TUNER_WRITE_DISABLE(state->config.pll_addr));
deb_setf("bandwidth: ");
switch (ofdm->bandwidth) {
@@ -388,12 +388,12 @@ static int dib3000mb_fe_init(struct dvb_frontend* fe, int mobile_mode)
wr(DIB3000MB_REG_DATA_IN_DIVERSITY, DIB3000MB_DATA_DIVERSITY_IN_OFF);
- if (state->config->pll_init) {
+ if (state->config.pll_init) {
wr(DIB3000MB_REG_TUNER,
- DIB3000_TUNER_WRITE_ENABLE(state->config->pll_addr));
- state->config->pll_init(fe);
+ DIB3000_TUNER_WRITE_ENABLE(state->config.pll_addr));
+ state->config.pll_init(fe);
wr(DIB3000MB_REG_TUNER,
- DIB3000_TUNER_WRITE_DISABLE(state->config->pll_addr));
+ DIB3000_TUNER_WRITE_DISABLE(state->config.pll_addr));
}
return 0;
@@ -761,8 +761,8 @@ struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
goto error;
/* setup the state */
- state->config = config;
state->i2c = i2c;
+ memcpy(&state->config,config,sizeof(struct dib3000_config));
memcpy(&state->ops, &dib3000mb_ops, sizeof(struct dvb_frontend_ops));
/* check for the correct demod */