summaryrefslogtreecommitdiff
path: root/src/pld
diff options
context:
space:
mode:
Diffstat (limited to 'src/pld')
-rw-r--r--src/pld/pld.h2
-rw-r--r--src/pld/virtex2.c2
-rw-r--r--src/pld/xilinx_bit.c2
-rw-r--r--src/pld/xilinx_bit.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/pld/pld.h b/src/pld/pld.h
index c6d3c924..3db4bad0 100644
--- a/src/pld/pld.h
+++ b/src/pld/pld.h
@@ -29,7 +29,7 @@ typedef struct pld_driver_s
char *name;
int (*register_commands)(struct command_context_s *cmd_ctx);
int (*pld_device_command)(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct pld_device_s *pld_device);
- int (*load)(struct pld_device_s *pld_device, char *filename);
+ int (*load)(struct pld_device_s *pld_device, const char *filename);
} pld_driver_t;
typedef struct pld_device_s
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c
index 28cae6ca..ec0847fe 100644
--- a/src/pld/virtex2.c
+++ b/src/pld/virtex2.c
@@ -143,7 +143,7 @@ static int virtex2_read_stat(struct pld_device_s *pld_device, uint32_t *status)
return ERROR_OK;
}
-static int virtex2_load(struct pld_device_s *pld_device, char *filename)
+static int virtex2_load(struct pld_device_s *pld_device, const char *filename)
{
virtex2_pld_device_t *virtex2_info = pld_device->driver_priv;
xilinx_bit_file_t bit_file;
diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c
index c766805f..33c3ed79 100644
--- a/src/pld/xilinx_bit.c
+++ b/src/pld/xilinx_bit.c
@@ -75,7 +75,7 @@ static int read_section(FILE *input_file, int length_size, char section,
return ERROR_OK;
}
-int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, char *filename)
+int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, const char *filename)
{
FILE *input_file;
struct stat input_stat;
diff --git a/src/pld/xilinx_bit.h b/src/pld/xilinx_bit.h
index f9b96a7b..3eb331ba 100644
--- a/src/pld/xilinx_bit.h
+++ b/src/pld/xilinx_bit.h
@@ -33,6 +33,6 @@ typedef struct xilinx_bit_file_s
uint8_t *data;
} xilinx_bit_file_t;
-int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, char *filename);
+int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, const char *filename);
#endif /* XILINX_BIT_H */