提交 2034188a 编写于 作者: A Abylay Ospan 提交者: Mauro Carvalho Chehab

V4L/DVB (12957): Fix MAC address reading from EEPROM in NetUP Dual DVB-S2 CI card.

Signed-off-by: NAbylay Ospan <aospan@netup.ru>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8386c27f
......@@ -97,11 +97,11 @@ void netup_get_card_info(struct i2c_adapter *i2c_adap,
{
int i, j;
cinfo->rev = netup_eeprom_read(i2c_adap, 13);
cinfo->rev = netup_eeprom_read(i2c_adap, 63);
for (i = 0, j = 0; i < 6; i++, j++)
for (i = 64, j = 0; i < 70; i++, j++)
cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i);
for (i = 6, j = 0; i < 12; i++, j++)
for (i = 70, j = 0; i < 76; i++, j++)
cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i);
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册