forked from len0rd/rockbox
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
This commit is contained in:
parent
0307cd16a0
commit
d767883a41
11 changed files with 19 additions and 17 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#define SWAP(a, b) do{uint8_t SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
|
#define SWAP(a, b) do{uint8_t SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
|
||||||
|
|
||||||
void advance_buffer(uint8_t **buf, int val)
|
static void advance_buffer(uint8_t **buf, int val)
|
||||||
{
|
{
|
||||||
*buf += val;
|
*buf += val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -580,11 +580,6 @@ void gui_synclist_speak_item(struct gui_synclist * lists)
|
||||||
else _gui_synclist_speak_item(lists, false);
|
else _gui_synclist_speak_item(lists, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_TOUCHSCREEN)
|
|
||||||
/* this needs to be fixed if we ever get more than 1 touchscreen on a target */
|
|
||||||
unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool gui_synclist_do_button(struct gui_synclist * lists,
|
bool gui_synclist_do_button(struct gui_synclist * lists,
|
||||||
int *actionptr, enum list_wrap wrap)
|
int *actionptr, enum list_wrap wrap)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,11 @@ extern bool gui_synclist_do_button(struct gui_synclist * lists,
|
||||||
int *action,
|
int *action,
|
||||||
enum list_wrap);
|
enum list_wrap);
|
||||||
|
|
||||||
|
#if defined(HAVE_TOUCHSCREEN)
|
||||||
|
/* this needs to be fixed if we ever get more than 1 touchscreen on a target */
|
||||||
|
unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If the list has a pending postponed scheduled announcement, that
|
/* If the list has a pending postponed scheduled announcement, that
|
||||||
may become due before the next get_action tmieout. This function
|
may become due before the next get_action tmieout. This function
|
||||||
adjusts the get_action timeout appropriately. */
|
adjusts the get_action timeout appropriately. */
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ bool is_wps_fading(void)
|
||||||
return wps_fading_out;
|
return wps_fading_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool update_onvol_change(struct gui_wps * gwps)
|
static bool update_onvol_change(struct gui_wps * gwps)
|
||||||
{
|
{
|
||||||
skin_update(gwps, WPS_REFRESH_NON_STATIC);
|
skin_update(gwps, WPS_REFRESH_NON_STATIC);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ unsigned int iim_system_rev(void)
|
||||||
return system_rev & IIM_SREV_SREV;
|
return system_rev & IIM_SREV_SREV;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int iim_prod_rev(void)
|
static unsigned int iim_prod_rev(void)
|
||||||
{
|
{
|
||||||
return product_rev;
|
return product_rev;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ unsigned flash_vmcs_length;
|
||||||
Based on part of FS#6721. This may belong elsewhere.
|
Based on part of FS#6721. This may belong elsewhere.
|
||||||
(BCM initialization uploads the vmcs section to the BCM.)
|
(BCM initialization uploads the vmcs section to the BCM.)
|
||||||
*/
|
*/
|
||||||
bool flash_get_section(const unsigned int imageid,
|
static bool flash_get_section(const unsigned int imageid,
|
||||||
void **offset,
|
void **offset,
|
||||||
unsigned int *length)
|
unsigned int *length)
|
||||||
{
|
{
|
||||||
|
|
@ -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);
|
bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0);
|
||||||
|
|
||||||
|
|
@ -530,7 +530,7 @@ const unsigned char bcm_bootstrapdata[] =
|
||||||
0xA1, 0x81, 0x91, 0x02, 0x12, 0x22, 0x72, 0x62
|
0xA1, 0x81, 0x91, 0x02, 0x12, 0x22, 0x72, 0x62
|
||||||
};
|
};
|
||||||
|
|
||||||
void bcm_init(void)
|
static void bcm_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
|
#include "backlight-target.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
void _backlight_on(void)
|
void _backlight_on(void)
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "thread.h"
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
|
#include "backlight-target.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
/* Returns the current state of the backlight (true=ON, false=OFF). */
|
/* Returns the current state of the backlight (true=ON, false=OFF). */
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
|
#include "backlight-target.h"
|
||||||
#include "pcf50606.h"
|
#include "pcf50606.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -447,7 +447,7 @@ unsigned char pcf50606_i2c_inb(bool ack)
|
||||||
return byte;
|
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;
|
int i,x=0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ void buf_dump(unsigned char *buf, size_t size)
|
||||||
#define buf_dump(...)
|
#define buf_dump(...)
|
||||||
#endif
|
#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);
|
memset(buf, 0, 7);
|
||||||
|
|
||||||
|
|
@ -289,7 +289,7 @@ uint8_t buf_set_keyboard(unsigned char *buf, int id)
|
||||||
return 7;
|
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);
|
memset(buf, 0, 4);
|
||||||
buf[0] = (uint8_t)id;
|
buf[0] = (uint8_t)id;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue