summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/mc13783-imx31.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-17 18:31:55 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-17 18:31:55 +0000
commit17ed3253fc98bcca59d70531a4d81b3be75dc7ea (patch)
tree9d1eee2029f442b207dcbb8ea1f75059e96b7d96 /firmware/target/arm/imx31/mc13783-imx31.c
parentf372212adf279d12c88d6bde948d11cf3ad002b3 (diff)
downloadrockbox-17ed3253fc98bcca59d70531a4d81b3be75dc7ea.tar.gz
rockbox-17ed3253fc98bcca59d70531a4d81b3be75dc7ea.zip
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
Diffstat (limited to 'firmware/target/arm/imx31/mc13783-imx31.c')
-rw-r--r--firmware/target/arm/imx31/mc13783-imx31.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/mc13783-imx31.c b/firmware/target/arm/imx31/mc13783-imx31.c
index 006b065ea5..094fbaa58b 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;
31 31
32/* PMIC event service data */ 32/* PMIC event service data */
33static int mc13783_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)]; 33static int mc13783_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)];
34static const char *mc13783_thread_name = "pmic"; 34static const char * const mc13783_thread_name = "pmic";
35static struct semaphore mc13783_svc_wake; 35static struct semaphore mc13783_svc_wake;
36 36
37/* Synchronous thread communication objects */ 37/* Synchronous thread communication objects */