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/pld/virtex2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pld/virtex2.c') diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index e8fe63b..527434a 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -235,10 +235,10 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command) static int virtex2_register_commands(struct command_context *cmd_ctx) { - struct command *virtex2_cmd = register_command(cmd_ctx, NULL, "virtex2", + struct command *virtex2_cmd = COMMAND_REGISTER(cmd_ctx, NULL, "virtex2", NULL, COMMAND_ANY, "virtex2 specific commands"); - register_command(cmd_ctx, virtex2_cmd, "read_stat", + COMMAND_REGISTER(cmd_ctx, virtex2_cmd, "read_stat", &virtex2_handle_read_stat_command, COMMAND_EXEC, "read Virtex-II status register"); -- cgit v1.1