Re: [PATCH 2/2] cmd: introduce 'write' command

2023-02-21 Thread Simon Glass
Hi Rasmus, On Fri, 17 Feb 2023 at 17:59, Rasmus Villemoes 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

[PATCH 2/2] cmd: introduce 'write' command

2023-02-17 Thread Rasmus Villemoes
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 --- cmd/Kconfig |