Skip to content

Commit

Permalink
V4L/DVB (12957): Fix MAC address reading from EEPROM in NetUP Dual DV…
Browse files Browse the repository at this point in the history
…B-S2 CI card.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 8386c27 commit 2034188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/cx23885/netup-eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 2034188

Please sign in to comment.