remove register_callbacks from jtag interface
Changes the jtag_interface->register_callbacks field to a list of commands to be registered. Changes callback to invocation of register_commands() with that command registration list. Removes all JTAG interface driver register_command callback functions, which the previous commits had converted into identical calls.
This commit is contained in:
@@ -204,10 +204,8 @@ struct jtag_interface {
|
||||
/**
|
||||
* The interface driver may register additional commands to expose
|
||||
* additional features not covered by the standard command set.
|
||||
* @param cmd_ctx The context in which commands should be registered.
|
||||
* @returns ERROR_OK on success, or an error code on failure.
|
||||
*/
|
||||
int (*register_commands)(struct command_context* cmd_ctx);
|
||||
const struct command_registration *commands;
|
||||
|
||||
/**
|
||||
* Interface driver must initalize any resources and connect to a
|
||||
|
||||
Reference in New Issue
Block a user