diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-23 08:24:02 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:36 -0800 |
commit | f74e2e033a2ad082e5bef67d0ddedd1db3f58300 (patch) | |
tree | 8f0e521332a6685085a38cd70660bf8f308060a4 /src/target/etb.c | |
parent | 66ee303456910f684244a20a0ac2e958d40b78cb (diff) | |
download | riscv-openocd-f74e2e033a2ad082e5bef67d0ddedd1db3f58300.zip riscv-openocd-f74e2e033a2ad082e5bef67d0ddedd1db3f58300.tar.gz riscv-openocd-f74e2e033a2ad082e5bef67d0ddedd1db3f58300.tar.bz2 |
remove register_commands from etm_capture_driver
Converts callback to an array of command_registration records.
Moves oocd_trace driver definition to end of file to eliminate
useless forward declaration.
Diffstat (limited to 'src/target/etb.c')
-rw-r--r-- | src/target/etb.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/target/etb.c b/src/target/etb.c index 63dee18..bc0e1bf 100644 --- a/src/target/etb.c +++ b/src/target/etb.c @@ -421,11 +421,6 @@ static const struct command_registration etb_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -static int etb_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, etb_command_handlers); -} - static int etb_init(struct etm_context *etm_ctx) { struct etb *etb = etm_ctx->capture_driver_priv; @@ -696,7 +691,7 @@ static int etb_stop_capture(struct etm_context *etm_ctx) struct etm_capture_driver etb_capture_driver = { .name = "etb", - .register_commands = etb_register_commands, + .commands = etb_command_handlers, .init = etb_init, .status = etb_status, .start_capture = etb_start_capture, |