pld: use static registration instead of callback

Remove register_callbacks from pld_device structure, using an array
of command_registration records instead.
This commit is contained in:
Zachary T Welch
2009-11-23 09:30:02 -08:00
parent 76b89755c9
commit e2f23c5437
3 changed files with 12 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ struct pld_driver
{
char *name;
__PLD_DEVICE_COMMAND((*pld_device_command));
int (*register_commands)(struct command_context *cmd_ctx);
const struct command_registration *commands;
int (*load)(struct pld_device *pld_device, const char *filename);
};