helper/command: pass command prefix to command registration
commit41c95aa4ea1506a951dad0147f6cd4b8d7043358
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 10 May 2020 17:35:56 +0000 (10 19:35 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Apr 2021 14:33:30 +0000 (18 15:33 +0100)
treef573214b497914549a9b81872dc528f0b70c7870
parent428938993742f4f961cdc948593d9553f721c321
helper/command: pass command prefix to command registration

Replace the "struct command *parent" parameter with a string that
contains the command prefix.
This abstracts the openocd code from the knowledge of the tree of
struct command.
This also makes unused the function command_find_in_context(), so
remove it.

Change-Id: I598d60719cfdc1811ee6f6edfff8a116f82c7ed6
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5668
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/flash/nand/tcl.c
src/flash/nor/esirisc_flash.c
src/flash/nor/tcl.c
src/helper/command.c
src/helper/command.h
src/pld/pld.c
src/target/etm.c