浏览代码

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>
Antti Palosaari 14 年之前
父节点
当前提交
ed19a5db78
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/media/dvb/dvb-usb/af9015.c

+ 2 - 1
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