transport: Constify the transports vector
Change-Id: I0c874b5d4c97cf781d83bd381d701f770e069f72 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2135 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
@@ -207,7 +207,7 @@ struct jtag_interface {
|
||||
#define DEBUG_CAP_TMS_SEQ (1 << 0)
|
||||
|
||||
/** transports supported in C code (NULL terminated vector) */
|
||||
const char **transports;
|
||||
const char * const *transports;
|
||||
|
||||
const struct swd_driver *swd;
|
||||
|
||||
@@ -300,7 +300,7 @@ struct jtag_interface {
|
||||
int (*srst_asserted)(int *srst_asserted);
|
||||
};
|
||||
|
||||
extern const char *jtag_only[];
|
||||
extern const char * const jtag_only[];
|
||||
|
||||
void adapter_assert_reset(void);
|
||||
void adapter_deassert_reset(void);
|
||||
|
||||
Reference in New Issue
Block a user