From 833e7f5248778bcb31b4db1a1b91160995415203 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 20 Nov 2009 11:26:35 -0800 Subject: use COMMAND_REGISTER macro Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases. --- src/flash/at91sam3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/flash/at91sam3.c') diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c index 195da91a..d8460b09 100644 --- a/src/flash/at91sam3.c +++ b/src/flash/at91sam3.c @@ -2478,18 +2478,18 @@ sam3_register_commands(struct command_context *cmd_ctx) if (!sam3_registered) { sam3_registered++; - pCmd = register_command(cmd_ctx, NULL, "at91sam3", NULL, COMMAND_ANY, NULL); - register_command(cmd_ctx, pCmd, + pCmd = COMMAND_REGISTER(cmd_ctx, NULL, "at91sam3", NULL, COMMAND_ANY, NULL); + COMMAND_REGISTER(cmd_ctx, pCmd, "gpnvm", sam3_handle_gpnvm_command, COMMAND_EXEC, "at91sam3 gpnvm [action [], by default 'show', otherwise set | clear BIT"); - register_command(cmd_ctx, pCmd, + COMMAND_REGISTER(cmd_ctx, pCmd, "info", sam3_handle_info_command, COMMAND_EXEC, "at91sam3 info - print information about the current sam3 chip"); - register_command(cmd_ctx, pCmd, + COMMAND_REGISTER(cmd_ctx, pCmd, "slowclk", sam3_handle_slowclk_command, COMMAND_EXEC, -- cgit v1.2.3