commit | c614b83c0e4e913fe89e1bace59d27a7d7f84cc0 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Thu Mar 02 09:12:22 2023 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Mar 17 15:44:01 2023 -0400 |
tree | c80868ec8479684f271e142c8e518cff5c275998 | |
parent | d50584053c227d55681c754b3d0467ae4e0bd484 [diff] |
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>