mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
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>
This commit is contained in:
parent
d4fec4e988
commit
d4e69e617c
1 changed files with 10 additions and 9 deletions
|
@ -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);
|
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;
|
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);
|
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);
|
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;
|
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);
|
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;
|
return rcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue