From 8d46720cda288f498787a706bb2518e6f852b9f1 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 20 Nov 2009 22:01:59 -0800 Subject: 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. --- src/jtag/interface.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/jtag/interface.h') diff --git a/src/jtag/interface.h b/src/jtag/interface.h index 05e4048b..d55782ad 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -204,10 +204,8 @@ struct jtag_interface { /** * The interface driver may register additional commands to expose * additional features not covered by the standard command set. - * @param cmd_ctx The context in which commands should be registered. - * @returns ERROR_OK on success, or an error code on failure. */ - int (*register_commands)(struct command_context* cmd_ctx); + const struct command_registration *commands; /** * Interface driver must initalize any resources and connect to a -- cgit v1.2.3