diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-20 22:01:59 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:33 -0800 |
commit | 8d46720cda288f498787a706bb2518e6f852b9f1 (patch) | |
tree | eab7c9b46857d882666e9e97127194a2c14fd6cc /src/jtag/amt_jtagaccel.c | |
parent | fc2d9f87615b7a5562cb9cd58fb95953e5d89818 (diff) | |
download | riscv-openocd-8d46720cda288f498787a706bb2518e6f852b9f1.zip riscv-openocd-8d46720cda288f498787a706bb2518e6f852b9f1.tar.gz riscv-openocd-8d46720cda288f498787a706bb2518e6f852b9f1.tar.bz2 |
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.
Diffstat (limited to 'src/jtag/amt_jtagaccel.c')
-rw-r--r-- | src/jtag/amt_jtagaccel.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jtag/amt_jtagaccel.c b/src/jtag/amt_jtagaccel.c index c3f3279..d26482a 100644 --- a/src/jtag/amt_jtagaccel.c +++ b/src/jtag/amt_jtagaccel.c @@ -558,14 +558,9 @@ static const struct command_registration amtjtagaccel_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -static int amt_jtagaccel_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, amtjtagaccel_command_handlers); -} - struct jtag_interface amt_jtagaccel_interface = { .name = "amt_jtagaccel", - .register_commands = &amt_jtagaccel_register_commands, + .commands = amtjtagaccel_command_handlers, .init = &amt_jtagaccel_init, .quit = &amt_jtagaccel_quit, .speed = &amt_jtagaccel_speed, |