jtag: remove file driver.h
The only purpose of include file driver.h was to expose the API to register the adapter's commands. Move the prototype in adapter.h, already used by openocd.c. Change-Id: Ie1090c60ef9e5bac5ea187c87bed6e7b08d9671c Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6645 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
This commit is contained in:
@@ -886,7 +886,7 @@ static const struct command_registration interface_command_handlers[] = {
|
||||
* @todo Remove internal assumptions that all debug adapters use JTAG for
|
||||
* transport. Various types and data structures are not named generically.
|
||||
*/
|
||||
int interface_register_commands(struct command_context *ctx)
|
||||
int adapter_register_commands(struct command_context *ctx)
|
||||
{
|
||||
return register_commands(ctx, NULL, interface_command_handlers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user