Skip to content
Snippets Groups Projects
Commit 3501d908 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

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


Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent 1250929c
No related merge requests found
......@@ -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;
}
......
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