diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-18 23:28:54 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-07-18 23:28:54 +0000 |
commit | 8d0126f355f6b95683a0e314868b4f1331b4578b (patch) | |
tree | 36cfce35792ebc2c6771d49d14717548ae102474 /firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | |
parent | 929d5e9399eabead217e69dc7ca009ad4f0f4e6d (diff) |
Fix missing #includes and make local functions static for gigabeat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18091 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c index 69bf922571..9fb2a90c42 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c @@ -47,23 +47,23 @@ bool lcd_enabled(void) return lcd_on; } -unsigned int LCDBANK(unsigned int address) +static unsigned int LCDBANK(unsigned int address) { return ((address >> 22) & 0xff); } -unsigned int LCDBASEU(unsigned int address) +static unsigned int LCDBASEU(unsigned int address) { return (address & ((1 << 22)-1)) >> 1; } -unsigned int LCDBASEL(unsigned int address) +static unsigned int LCDBASEL(unsigned int address) { address += 320*240*2; return (address & ((1 << 22)-1)) >> 1; } -inline void delay_cycles(volatile int delay) +static inline void delay_cycles(volatile int delay) { while(delay>0) delay--; } @@ -138,7 +138,7 @@ static void LCD_SPI_send(const unsigned char *array, int count) } } -void LCD_SPI_setreg(unsigned char reg, unsigned char value) +static void LCD_SPI_setreg(unsigned char reg, unsigned char value) { unsigned char regval[] = { @@ -160,7 +160,7 @@ static void LCD_SPI_SS(bool select) GPBDAT&=~0x100; } -void LCD_SPI_start(void) +static void LCD_SPI_start(void) { s3c_regset(&CLKCON, 0x40000); /* enable SPI clock */ LCD_SPI_SS(false); @@ -171,7 +171,7 @@ void LCD_SPI_start(void) LCD_SPI_SS(true); } -void LCD_SPI_stop(void) +static void LCD_SPI_stop(void) { LCD_SPI_SS(false); |