diff options
author | Patrick Boettcher <devnull@localhost> | 2004-12-02 18:02:29 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2004-12-02 18:02:29 +0000 |
commit | 3798b42fad1ba009d1dd41652e88c4e488b15bf1 (patch) | |
tree | 23a34dc0574c5834aa409e99f036482a3e3e5956 /linux/drivers/media/dvb/frontends/dib3000-common.c | |
parent | 7e603b49663feb3eb48364641562489c3373b1b0 (diff) | |
download | mediapointer-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/dib3000-common.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000-common.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000-common.c b/linux/drivers/media/dvb/frontends/dib3000-common.c index 763c549f5..c539eedee 100644 --- a/linux/drivers/media/dvb/frontends/dib3000-common.c +++ b/linux/drivers/media/dvb/frontends/dib3000-common.c @@ -15,8 +15,8 @@ int dib3000_read_reg(struct dib3000_state *state, u16 reg) u8 wb[] = { ((reg >> 8) | 0x80) & 0xff, reg & 0xff }; u8 rb[2]; struct i2c_msg msg[] = { - { .addr = state->config->demod_address, .flags = 0, .buf = wb, .len = 2 }, - { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = rb, .len = 2 }, + { .addr = state->config.demod_address, .flags = 0, .buf = wb, .len = 2 }, + { .addr = state->config.demod_address, .flags = I2C_M_RD, .buf = rb, .len = 2 }, }; if (i2c_transfer(state->i2c, msg, 2) != 2) @@ -35,7 +35,7 @@ int dib3000_write_reg(struct dib3000_state *state, u16 reg, u16 val) (val >> 8) & 0xff, val & 0xff, }; struct i2c_msg msg[] = { - { .addr = state->config->demod_address, .flags = 0, .buf = b, .len = 4 } + { .addr = state->config.demod_address, .flags = 0, .buf = b, .len = 4 } }; deb_i2c("writing i2c bus (reg: %5d 0x%04x, val: %5d 0x%04x)\n",reg,reg,val,val); @@ -131,6 +131,10 @@ u16 dib3000_seq[2][2][2] = /* fft,gua, inv */ } }; +MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de"); +MODULE_DESCRIPTION("Common functions for the dib3000mb/dib3000mc dvb frontend drivers"); +MODULE_LICENSE("GPL"); + EXPORT_SYMBOL(dib3000_seq); EXPORT_SYMBOL(dib3000_read_reg); |