ecos: add missing error propagation
[fw/openocd] / src / pld / pld.h
index 1ae775cc89f2b80fd9c1270dd34104aaff3a3530..3c7e4ffba8283e01baf53dd876c571fbac6dad3e 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef PLD_H
 #define PLD_H
 
-#include "command.h"
+#include <helper/command.h>
 
 struct pld_device;
 
@@ -29,7 +29,7 @@ struct pld_device;
 
 struct pld_driver
 {
-       char *name;
+       const char *name;
        __PLD_DEVICE_COMMAND((*pld_device_command));
        const struct command_registration *commands;
        int (*load)(struct pld_device *pld_device, const char *filename);
@@ -46,8 +46,6 @@ struct pld_device
 
 int pld_register_commands(struct command_context *cmd_ctx);
 
-int pld_init(struct command_context *cmd_ctx);
-
 struct pld_device *get_pld_device_by_num(int num);
 
 #define ERROR_PLD_DEVICE_INVALID       (-1000)