summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2010-09-13 04:02:55 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 07:05:52 +0400
commited19a5db7826a150f0746123b23ac5cb0b2621f8 (patch)
tree4aad710da364c0e1157478e7c93b644cb982a5b8 /drivers/media/dvb/dvb-usb
parent9b22edd4b0f3520bc1279338d52dc63e76852bef (diff)
downloadlinux-ed19a5db7826a150f0746123b23ac5cb0b2621f8.tar.xz
V4L/DVB: af9015: use value from config instead hardcoded one
Replace 2nd demod default address 0x3a with value got from eeprom config. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index f82f50d6acf5..f63cb18b37f6 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -496,7 +496,8 @@ static int af9015_copy_firmware(struct dvb_usb_device *d)
/* wait 2nd demodulator ready */
msleep(100);
- ret = af9015_read_reg_i2c(d, 0x3a, 0x98be, &val);
+ ret = af9015_read_reg_i2c(d,
+ af9015_af9013_config[1].demod_address, 0x98be, &val);
if (ret)
goto error;
else