[PATCH v2 2/5] cmd: introduce 'write' command
Simon Glass
sjg at chromium.org
Thu Mar 2 00:38:45 CET 2023
On Wed, 1 Mar 2023 at 14:13, Rasmus Villemoes
<rasmus.villemoes at prevas.dk> wrote:
>
> 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".
>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
> cmd/Kconfig | 5 +++++
> cmd/Makefile | 1 +
> cmd/read.c | 29 ++++++++++++++++++++++-------
> 3 files changed, 28 insertions(+), 7 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list