Commit 3501d908 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/spec-i2c: minor fix: write to fmc->eeprom as well

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 1250929c
......@@ -201,6 +201,7 @@ int spec_eeprom_write(struct fmc_device *fmc, uint32_t offset,
busy = mi2c_put_byte(fmc, fmc->eeprom_addr << 1);
mi2c_stop(fmc);
} while(busy);
fmc->eeprom[offset++] = *buf8++;
}
return size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment