correct number of efuse registers read

mt76_efuse_read() is supposed to read out 16 bytes of data
that is 4x4B data registers.  Correct the loop bounds.

Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
Jakub Kicinski
2015-02-01 10:53:57 +01:00
parent 83d0a1a12a
commit bd45637645
+1 -1
View File
@@ -156,7 +156,7 @@ mt76_efuse_read(struct mt76_dev *dev, u16 addr, u8 *data)
return 0;
}
for (i = 0; i < 3; i++) {
for (i = 0; i < 4; i++) {
val = mt76_rr(dev, MT_EFUSE_DATA(i));
put_unaligned_le32(val, data + 4 * i);
}