summaryrefslogtreecommitdiff
path: root/drivers/eeprom/eeprom_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/eeprom/eeprom_driver.c')
-rw-r--r--drivers/eeprom/eeprom_driver.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/eeprom/eeprom_driver.c b/drivers/eeprom/eeprom_driver.c
index 6ce47faf7d..885cf21981 100644
--- a/drivers/eeprom/eeprom_driver.c
+++ b/drivers/eeprom/eeprom_driver.c
@@ -37,11 +37,17 @@ uint32_t eeprom_read_dword(const uint32_t *addr) {
return ret;
}
-void eeprom_write_byte(uint8_t *addr, uint8_t value) { eeprom_write_block(&value, addr, 1); }
+void eeprom_write_byte(uint8_t *addr, uint8_t value) {
+ eeprom_write_block(&value, addr, 1);
+}
-void eeprom_write_word(uint16_t *addr, uint16_t value) { eeprom_write_block(&value, addr, 2); }
+void eeprom_write_word(uint16_t *addr, uint16_t value) {
+ eeprom_write_block(&value, addr, 2);
+}
-void eeprom_write_dword(uint32_t *addr, uint32_t value) { eeprom_write_block(&value, addr, 4); }
+void eeprom_write_dword(uint32_t *addr, uint32_t value) {
+ eeprom_write_block(&value, addr, 4);
+}
void eeprom_update_block(const void *buf, void *addr, size_t len) {
uint8_t read_buf[len];