aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-05-21 09:13:29 +0200
committerTom Rini <trini@konsulko.com>2024-06-07 10:47:59 -0600
commit642ec48c76e6469c9a14f5c0359363af25bdaafb (patch)
tree3e42e5ce9a72c9fd3172f7f6dedf2962f3d36dc2 /cmd
parent951dc4e077b2ba5eadaba3beb9b61f131ffa6fdc (diff)
downloadu-boot-642ec48c76e6469c9a14f5c0359363af25bdaafb.zip
u-boot-642ec48c76e6469c9a14f5c0359363af25bdaafb.tar.gz
u-boot-642ec48c76e6469c9a14f5c0359363af25bdaafb.tar.bz2
cmd: eeprom: Fix usage help for the eeprom command
The bus and devaddr arguments of the eeprom command are optional, and if only one is given, it is assumed to be devaddr. Change the usage help from <bus> <devaddr> to [[bus] [devaddr] Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/eeprom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index 322765a..0d60483 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -418,14 +418,14 @@ int do_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
U_BOOT_CMD(
eeprom, 8, 1, do_eeprom,
"EEPROM sub-system",
- "read <bus> <devaddr> addr off cnt\n"
- "eeprom write <bus> <devaddr> addr off cnt\n"
+ "read [[bus] devaddr] addr off cnt\n"
+ "eeprom write [[bus] devaddr] addr off cnt\n"
" - read/write `cnt' bytes from `devaddr` EEPROM at offset `off'"
#ifdef CONFIG_CMD_EEPROM_LAYOUT
"\n"
- "eeprom print [-l <layout_version>] <bus> <devaddr>\n"
+ "eeprom print [-l <layout_version>] [[bus] devaddr]\n"
" - Print layout fields and their data in human readable format\n"
- "eeprom update [-l <layout_version>] <bus> <devaddr> field_name field_value\n"
+ "eeprom update [-l <layout_version>] [[bus] devaddr] field_name field_value\n"
" - Update a specific eeprom field with new data.\n"
" The new data must be written in the same human readable format as shown by the print command.\n"
"\n"