From 17ed3253fc98bcca59d70531a4d81b3be75dc7ea Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Sat, 17 Dec 2011 18:31:55 +0000 Subject: Add const to global pointers to strings. When a global pointer is not declared as constant, gcc will put it in memory. Getting the address of the string it points to requires loading the address of the pointer and then loading the pointer. When the pointer is declared constant, the address of the string is loaded directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31345 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/mc13783-imx31.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/target/arm/imx31/mc13783-imx31.c b/firmware/target/arm/imx31/mc13783-imx31.c index 006b065..094fbaa 100644 --- a/firmware/target/arm/imx31/mc13783-imx31.c +++ b/firmware/target/arm/imx31/mc13783-imx31.c @@ -31,7 +31,7 @@ extern struct spi_node mc13783_spi; /* PMIC event service data */ static int mc13783_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)]; -static const char *mc13783_thread_name = "pmic"; +static const char * const mc13783_thread_name = "pmic"; static struct semaphore mc13783_svc_wake; /* Synchronous thread communication objects */ -- cgit v1.1