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:
@@ -1890,14 +1890,10 @@ static const struct command_registration vsllink_command_handlers[] = {
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
static int vsllink_register_commands(struct command_context *cmd_ctx)
|
||||
{
|
||||
return register_commands(cmd_ctx, NULL, vsllink_command_handlers);
|
||||
}
|
||||
|
||||
struct jtag_interface vsllink_interface = {
|
||||
.name = "vsllink",
|
||||
.register_commands = &vsllink_register_commands,
|
||||
.commands = vsllink_command_handlers,
|
||||
|
||||
.init = &vsllink_init,
|
||||
.quit = &vsllink_quit,
|
||||
.khz = &vsllink_khz,
|
||||
|
||||
Reference in New Issue
Block a user