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:
@@ -636,9 +636,10 @@ COMMAND_HANDLER(handle_interface_command)
|
||||
if (strcmp(CMD_ARGV[0], jtag_interfaces[i]->name) != 0)
|
||||
continue;
|
||||
|
||||
if (NULL != jtag_interfaces[i]->register_commands)
|
||||
if (NULL != jtag_interfaces[i]->commands)
|
||||
{
|
||||
int retval = jtag_interfaces[i]->register_commands(CMD_CTX);
|
||||
int retval = register_commands(CMD_CTX, NULL,
|
||||
jtag_interfaces[i]->commands);
|
||||
if (ERROR_OK != retval)
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user