X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_eeprom.c;h=4a43116e92562cc766cd3a3fbeb577b53bd673b3;hb=67cd4a63487400317f1586b130bc2475767a5315;hp=519b510c77ed2e930b02c95ea4d0e243efcc331a;hpb=548738b4d43af841ff58c787bce297ac6a8bf7d1;p=u-boot diff --git a/common/cmd_eeprom.c b/common/cmd_eeprom.c index 519b510c77..4a43116e92 100644 --- a/common/cmd_eeprom.c +++ b/common/cmd_eeprom.c @@ -26,7 +26,7 @@ * Support for read and write access to EEPROM like memory devices. This * includes regular EEPROM as well as FRAM (ferroelectic nonvolaile RAM). * FRAM devices read and write data at bus speed. In particular, there is no - * write delay. Also, there is no limit imposed on the numer of bytes that can + * write delay. Also, there is no limit imposed on the number of bytes that can * be transferred with a single read or write. * * Use the following configuration options to ensure no unneeded performance @@ -60,7 +60,7 @@ extern int eeprom_write_enable (unsigned dev_addr, int state); /* ------------------------------------------------------------------------- */ #if defined(CONFIG_CMD_EEPROM) -int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) +int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) { const char *const fmt = "\nEEPROM @0x%lX %s: addr %08lx off %04lx count %ld ... "; @@ -104,8 +104,7 @@ int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) } } - cmd_usage(cmdtp); - return 1; + return CMD_RET_USAGE; } #endif @@ -251,7 +250,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn /* * For a FRAM device there is no limit on the number of the - * bytes that can be ccessed with the single read or write + * bytes that can be accessed with the single read or write * operation. */ #if !defined(CONFIG_SYS_I2C_FRAM)