diff options
author | Marek Vasut <marex@denx.de> | 2015-11-10 19:53:33 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-22 02:50:27 (GMT) |
commit | d4e69e617cee68276f346207bb2396f6a39e9558 (patch) | |
tree | 8102ecf770c844d9cf671e17bf397fd3acd7ad18 | |
parent | d4fec4e9881ec5d72104a6ca7bd04ec725cf5c82 (diff) | |
download | u-boot-fsl-qoriq-d4e69e617cee68276f346207bb2396f6a39e9558.tar.xz |
eeprom: Clean up checkpatch issues
Cosmetic fixes to the file, make it checkpatch clean.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
-rw-r--r-- | common/cmd_eeprom.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/common/cmd_eeprom.c b/common/cmd_eeprom.c index d3e9462..6eab1ea 100644 --- a/common/cmd_eeprom.c +++ b/common/cmd_eeprom.c @@ -49,8 +49,8 @@ */ #if !defined(CONFIG_SPI) || defined(CONFIG_ENV_EEPROM_IS_ON_I2C) #if !defined(CONFIG_SYS_I2C_EEPROM_ADDR_LEN) || \ - (CONFIG_SYS_I2C_EEPROM_ADDR_LEN < 1) || \ - (CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 2) + (CONFIG_SYS_I2C_EEPROM_ADDR_LEN < 1) || \ + (CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 2) #error CONFIG_SYS_I2C_EEPROM_ADDR_LEN must be 1 or 2 #endif #endif @@ -185,7 +185,8 @@ int eeprom_read(unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt) return eeprom_rw(dev_addr, offset, buffer, cnt, 1); } -int eeprom_write(unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt) +int eeprom_write(unsigned dev_addr, unsigned offset, + uchar *buffer, unsigned cnt) { int ret; @@ -236,19 +237,19 @@ static int do_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) eeprom_init(bus_addr); - if (strcmp (argv[1], "read") == 0) { + if (strcmp(argv[1], "read") == 0) { printf(fmt, dev_addr, argv[1], addr, off, cnt); - rcode = eeprom_read(dev_addr, off, (uchar *) addr, cnt); + rcode = eeprom_read(dev_addr, off, (uchar *)addr, cnt); - puts ("done\n"); + puts("done\n"); return rcode; - } else if (strcmp (argv[1], "write") == 0) { + } else if (strcmp(argv[1], "write") == 0) { printf(fmt, dev_addr, argv[1], addr, off, cnt); - rcode = eeprom_write(dev_addr, off, (uchar *) addr, cnt); + rcode = eeprom_write(dev_addr, off, (uchar *)addr, cnt); - puts ("done\n"); + puts("done\n"); return rcode; } |