From ff54e03e7f991d4b29b3d9eb7fec63f3cf31399b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 25 Feb 2012 13:48:50 +0100 Subject: [PATCH] Make some arrays const. Change-Id: I371435b2943a19f4b33bbedb116800b483621a4d --- firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c | 10 +++++----- 1 file 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;