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:
Zachary T Welch
2009-11-20 22:01:59 -08:00
parent fc2d9f8761
commit 8d46720cda
12 changed files with 34 additions and 113 deletions

View File

@@ -4009,15 +4009,9 @@ static const struct command_registration ft2232_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
static int ft2232_register_commands(struct command_context* cmd_ctx)
{
return register_commands(cmd_ctx, NULL, ft2232_command_handlers);
}
struct jtag_interface ft2232_interface = {
.name = "ft2232",
.register_commands = &ft2232_register_commands,
.commands = ft2232_command_handlers,
.init = &ft2232_init,
.quit = &ft2232_quit,
.speed = &ft2232_speed,