]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: introduce 'write' command
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 2 Mar 2023 08:12:22 +0000 (09:12 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Mar 2023 19:44:01 +0000 (15:44 -0400)
commit787b74090c21e33b2a7ea1ba705aa4b15f299130
treec80868ec8479684f271e142c8e518cff5c275998
parentc3928e1aa3b09662912097753143376b34d9cedb
cmd: introduce 'write' command

It's almost no extra code to hook up a buddy to the 'read' command. In
fact, since the command is passed its own 'struct cmd_tbl', we can use
the exact same callback, and let it figure out for itself whether it
was invoked as "read" or "write".

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
cmd/Kconfig
cmd/Makefile
cmd/read.c