summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2012-02-25 13:48:50 +0100
committerNils Wallménius <nils@rockbox.org>2012-02-25 13:48:50 +0100
commitff54e03e7f991d4b29b3d9eb7fec63f3cf31399b (patch)
tree25dc5669c9a0c2d981373b43c41f8d18d48b9fd2 /firmware/target/arm
parent663667a8c5e6d30a885e1a4bdcf9f975b79caf1c (diff)
Make some arrays const.
Change-Id: I371435b2943a19f4b33bbedb116800b483621a4d
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c
index c1071e31b1..84443551b9 100644
--- a/firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c
+++ b/firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c
@@ -63,7 +63,7 @@ static bool lcd_ispowered;
/* powersave sequences */
-unsigned short lcd_sleep_sequence_01[] =
+static const unsigned short lcd_sleep_sequence_01[] =
{
CMD16, 0x028, /* Display Off */
SLEEP, 0x005, /* 50 ms */
@@ -72,7 +72,7 @@ unsigned short lcd_sleep_sequence_01[] =
END
};
-unsigned short lcd_deep_stby_sequence_23[] =
+static const unsigned short lcd_deep_stby_sequence_23[] =
{
/* Display Off */
REG15, 0x007, 0x0172,
@@ -96,7 +96,7 @@ unsigned short lcd_deep_stby_sequence_23[] =
#ifdef HAVE_LCD_SLEEP
/* init sequences */
-unsigned short lcd_init_sequence_01[] =
+static const unsigned short lcd_init_sequence_01[] =
{
CMD16, 0x011, /* Sleep Out Mode */
SLEEP, 0x006, /* 60 ms */
@@ -104,7 +104,7 @@ unsigned short lcd_init_sequence_01[] =
END
};
-unsigned short lcd_init_sequence_23[] =
+static const unsigned short lcd_init_sequence_23[] =
{
/* Display settings */
REG15, 0x008, 0x0808,
@@ -220,7 +220,7 @@ static inline void s5l_lcd_write_data(unsigned short data)
LCD_WDATA = data;
}
-static void lcd_run_sequence(unsigned short *seq)
+static void lcd_run_sequence(const unsigned short *seq)
{
unsigned short tmp;