X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fat91rm9200.c;h=8f65413a2b4ebbf8d8e286262bb47d7b42512633;hb=refs%2Fchanges%2F88%2F3488%2F3;hp=066d6b68a392efba45715828585a63e86bc50551;hpb=87668aebf1851c06af2513ab5f27ebb9ebf1ff16;p=openocd.git diff --git a/src/jtag/drivers/at91rm9200.c b/src/jtag/drivers/at91rm9200.c index 066d6b68a3..8f65413a2b 100644 --- a/src/jtag/drivers/at91rm9200.c +++ b/src/jtag/drivers/at91rm9200.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -79,7 +77,7 @@ #define P31 (1 << 31) struct device_t { - char *name; + const char *name; int TDO_PIO; /* PIO holding TDO */ uint32_t TDO_MASK; /* TDO bitmask */ int TRST_PIO; /* PIO holding TRST */ @@ -94,7 +92,7 @@ struct device_t { uint32_t SRST_MASK; /* SRST bitmask */ }; -static struct device_t devices[] = { +static const struct device_t devices[] = { { "rea_ecr", PIOD, P27, PIOA, NC, PIOD, P23, PIOD, P24, PIOD, P26, PIOC, P5 }, { .name = NULL }, }; @@ -104,7 +102,7 @@ static char *at91rm9200_device; /* interface variables */ -static struct device_t *device; +static const struct device_t *device; static int dev_mem_fd; static void *sys_controller; static uint32_t *pio_base; @@ -196,7 +194,7 @@ struct jtag_interface at91rm9200_interface = { static int at91rm9200_init(void) { - struct device_t *cur_device; + const struct device_t *cur_device; cur_device = devices;