diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2009-08-06 09:28:25 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-08-06 09:28:25 +0000 |
| commit | d767883a417667ceebf5bb241d02337f34bc8016 (patch) | |
| tree | 7136c4a1fd24d01176d3790e4b5d49f39cd6267b /firmware | |
| parent | 0307cd16a094b9b03da8fbcf237470ce2ad75cf7 (diff) | |
| download | rockbox-d767883a417667ceebf5bb241d02337f34bc8016.zip rockbox-d767883a417667ceebf5bb241d02337f34bc8016.tar.gz rockbox-d767883a417667ceebf5bb241d02337f34bc8016.tar.bz2 rockbox-d767883a417667ceebf5bb241d02337f34bc8016.tar.xz | |
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
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-imx31.c | 2 | ||||
| -rw-r--r-- | firmware/target/arm/ipod/video/lcd-video.c | 10 | ||||
| -rw-r--r-- | firmware/target/arm/iriver/h10/backlight-h10.c | 1 | ||||
| -rw-r--r-- | firmware/target/coldfire/iriver/h100/backlight-h100.c | 2 | ||||
| -rw-r--r-- | firmware/target/coldfire/iriver/h300/backlight-h300.c | 1 | ||||
| -rw-r--r-- | firmware/target/coldfire/pcf50606-coldfire.c | 2 | ||||
| -rw-r--r-- | firmware/usbstack/usb_hid.c | 4 |
7 files changed, 12 insertions, 10 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c index de39128..2a0d3e4 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 56c606f..613cc75 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 e74f2b8..db10f39 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) diff --git a/firmware/target/coldfire/iriver/h100/backlight-h100.c b/firmware/target/coldfire/iriver/h100/backlight-h100.c index 1b61f31..47c02cb 100644 --- a/firmware/target/coldfire/iriver/h100/backlight-h100.c +++ b/firmware/target/coldfire/iriver/h100/backlight-h100.c @@ -21,9 +21,9 @@ #include "config.h" #include "cpu.h" #include "kernel.h" -#include "thread.h" #include "system.h" #include "backlight.h" +#include "backlight-target.h" #include "lcd.h" /* Returns the current state of the backlight (true=ON, false=OFF). */ diff --git a/firmware/target/coldfire/iriver/h300/backlight-h300.c b/firmware/target/coldfire/iriver/h300/backlight-h300.c index 7f63e75..64e09b9 100644 --- a/firmware/target/coldfire/iriver/h300/backlight-h300.c +++ b/firmware/target/coldfire/iriver/h300/backlight-h300.c @@ -24,6 +24,7 @@ #include "thread.h" #include "system.h" #include "backlight.h" +#include "backlight-target.h" #include "pcf50606.h" #include "lcd.h" diff --git a/firmware/target/coldfire/pcf50606-coldfire.c b/firmware/target/coldfire/pcf50606-coldfire.c index 03c22a1..6206ae4 100644 --- a/firmware/target/coldfire/pcf50606-coldfire.c +++ b/firmware/target/coldfire/pcf50606-coldfire.c @@ -447,7 +447,7 @@ unsigned char pcf50606_i2c_inb(bool ack) return byte; } -int pcf50606_i2c_write(int address, const unsigned char* buf, int count) +static int pcf50606_i2c_write(int address, const unsigned char* buf, int count) { int i,x=0; diff --git a/firmware/usbstack/usb_hid.c b/firmware/usbstack/usb_hid.c index e1ae75c..4eb2584 100644 --- a/firmware/usbstack/usb_hid.c +++ b/firmware/usbstack/usb_hid.c @@ -277,7 +277,7 @@ void buf_dump(unsigned char *buf, size_t size) #define buf_dump(...) #endif -uint8_t buf_set_keyboard(unsigned char *buf, int id) +static uint8_t buf_set_keyboard(unsigned char *buf, int id) { memset(buf, 0, 7); @@ -289,7 +289,7 @@ uint8_t buf_set_keyboard(unsigned char *buf, int id) return 7; } -uint8_t buf_set_consumer(unsigned char *buf, int id) +static uint8_t buf_set_consumer(unsigned char *buf, int id) { memset(buf, 0, 4); buf[0] = (uint8_t)id; |