aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/aice
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2014-09-11 22:09:36 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2014-10-06 11:57:36 +0000
commitb675edcc95935cbdf77002db1e261536026f4cbe (patch)
tree07e3752145d917ba797d97788505b81dac9ff6a7 /src/jtag/aice
parent36bc83b174e4ac9741f325fc20fa01885e10f85e (diff)
downloadriscv-openocd-b675edcc95935cbdf77002db1e261536026f4cbe.zip
riscv-openocd-b675edcc95935cbdf77002db1e261536026f4cbe.tar.gz
riscv-openocd-b675edcc95935cbdf77002db1e261536026f4cbe.tar.bz2
jtag: constify driver arrays
Change-Id: I81574fa8ca3cc748526dc61b75a2c75d6335ef04 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2294 Tested-by: jenkins
Diffstat (limited to 'src/jtag/aice')
-rw-r--r--src/jtag/aice/aice_interface.c2
-rw-r--r--src/jtag/aice/aice_interface.h4
-rw-r--r--src/jtag/aice/aice_port.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/jtag/aice/aice_interface.c b/src/jtag/aice/aice_interface.c
index 838b54f..363b208 100644
--- a/src/jtag/aice/aice_interface.c
+++ b/src/jtag/aice/aice_interface.c
@@ -31,7 +31,7 @@
#include "aice_usb.h"
#define AICE_KHZ_TO_SPEED_MAP_SIZE 16
-static int aice_khz_to_speed_map[AICE_KHZ_TO_SPEED_MAP_SIZE] = {
+static const int aice_khz_to_speed_map[AICE_KHZ_TO_SPEED_MAP_SIZE] = {
30000,
15000,
7500,
diff --git a/src/jtag/aice/aice_interface.h b/src/jtag/aice/aice_interface.h
index c7b896c..ddb6ad4 100644
--- a/src/jtag/aice/aice_interface.h
+++ b/src/jtag/aice/aice_interface.h
@@ -22,9 +22,9 @@
struct aice_interface_param_s {
/** */
- char *device_desc;
+ const char *device_desc;
/** */
- char *serial;
+ const char *serial;
/** */
uint16_t vid;
/** */
diff --git a/src/jtag/aice/aice_port.h b/src/jtag/aice/aice_port.h
index 241f8b8..d29e9e1 100644
--- a/src/jtag/aice/aice_port.h
+++ b/src/jtag/aice/aice_port.h
@@ -106,9 +106,9 @@ enum aice_command_mode {
struct aice_port_param_s {
/** */
- char *device_desc;
+ const char *device_desc;
/** */
- char *serial;
+ const char *serial;
/** */
uint16_t vid;
/** */
@@ -225,7 +225,7 @@ struct aice_port_api_s {
/** */
struct aice_port {
/** */
- char *name;
+ const char *name;
/** */
int type;
/** */