From 3798b42fad1ba009d1dd41652e88c4e488b15bf1 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Thu, 2 Dec 2004 18:02:29 +0000 Subject: - prepared support for dynamically i2c addresses of the demod - added license information for the dib3000-common module --- linux/drivers/media/dvb/frontends/dib3000-common.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/dib3000-common.c') 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