From d767883a417667ceebf5bb241d02337f34bc8016 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Thu, 6 Aug 2009 09:28:25 +0000 Subject: Various files: make functions static if they're local or make sure there is a proper #include if not git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22184 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/system-imx31.c | 2 +- firmware/target/arm/ipod/video/lcd-video.c | 10 +++++----- firmware/target/arm/iriver/h10/backlight-h10.c | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'firmware/target/arm') diff --git a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c index de39128497..2a0d3e41a3 100644 --- a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c @@ -41,7 +41,7 @@ unsigned int iim_system_rev(void) return system_rev & IIM_SREV_SREV; } -unsigned int iim_prod_rev(void) +static unsigned int iim_prod_rev(void) { return product_rev; } diff --git a/firmware/target/arm/ipod/video/lcd-video.c b/firmware/target/arm/ipod/video/lcd-video.c index 56c606f940..613cc759ee 100644 --- a/firmware/target/arm/ipod/video/lcd-video.c +++ b/firmware/target/arm/ipod/video/lcd-video.c @@ -123,9 +123,9 @@ unsigned flash_vmcs_length; Based on part of FS#6721. This may belong elsewhere. (BCM initialization uploads the vmcs section to the BCM.) */ -bool flash_get_section(const unsigned int imageid, - void **offset, - unsigned int *length) +static bool flash_get_section(const unsigned int imageid, + void **offset, + unsigned int *length) { unsigned long *p = (unsigned long*)(ROM_BASE + 0xffe00); unsigned char *csp, *csend; @@ -505,7 +505,7 @@ static void bcm_command(unsigned cmd) } } -void bcm_powerdown(void) +static void bcm_powerdown(void) { bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0); @@ -530,7 +530,7 @@ const unsigned char bcm_bootstrapdata[] = 0xA1, 0x81, 0x91, 0x02, 0x12, 0x22, 0x72, 0x62 }; -void bcm_init(void) +static void bcm_init(void) { int i; diff --git a/firmware/target/arm/iriver/h10/backlight-h10.c b/firmware/target/arm/iriver/h10/backlight-h10.c index e74f2b8d43..db10f39057 100644 --- a/firmware/target/arm/iriver/h10/backlight-h10.c +++ b/firmware/target/arm/iriver/h10/backlight-h10.c @@ -22,6 +22,7 @@ #include "cpu.h" #include "system.h" #include "backlight.h" +#include "backlight-target.h" #include "lcd.h" void _backlight_on(void) -- cgit v1.2.3