battery_bench: make functions/struct/variables static

remove useless declarations

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27979 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-09-02 02:26:26 +00:00
parent be17fff138
commit bd7af68ccd

View file

@ -236,22 +236,10 @@
#endif #endif
/****************************** Plugin Entry Point ****************************/ /****************************** Plugin Entry Point ****************************/
int main(void); static long start_tick;
bool exit_tsr(bool);
void thread(void);
enum plugin_status plugin_start(const void* parameter)
{
(void)parameter;
return main();
}
long start_tick;
/* Struct for battery information */ /* Struct for battery information */
struct batt_info static struct batt_info
{ {
/* the size of the struct elements is optimised to make the struct size /* the size of the struct elements is optimised to make the struct size
* a power of 2 */ * a power of 2 */
@ -269,7 +257,7 @@ static struct event_queue thread_q;
static bool in_usb_mode; static bool in_usb_mode;
static unsigned int buf_idx; static unsigned int buf_idx;
bool exit_tsr(bool reenter) static bool exit_tsr(bool reenter)
{ {
long button; long button;
(void)reenter; (void)reenter;
@ -305,7 +293,7 @@ bool exit_tsr(bool reenter)
#define HMS(x) (x)/3600,((x)%3600)/60,((x)%3600)%60 #define HMS(x) (x)/3600,((x)%3600)/60,((x)%3600)%60
/* use long for aligning */ /* use long for aligning */
unsigned long thread_stack[THREAD_STACK_SIZE/sizeof(long)]; static unsigned long thread_stack[THREAD_STACK_SIZE/sizeof(long)];
#if CONFIG_CHARGING || defined(HAVE_USB_POWER) #if CONFIG_CHARGING || defined(HAVE_USB_POWER)
static unsigned int charge_state(void) static unsigned int charge_state(void)
@ -378,7 +366,7 @@ static void flush_buffer(void* data)
} }
void thread(void) static void thread(void)
{ {
bool exit = false; bool exit = false;
char *exit_reason = "unknown"; char *exit_reason = "unknown";
@ -467,8 +455,9 @@ static void put_centered_str(const char* str, plcdfunc putsxy, int lcd_width, in
} }
#endif #endif
int main(void) enum plugin_status plugin_start(const void* parameter)
{ {
(void)parameter;
int button, fd; int button, fd;
bool on = false; bool on = false;
start_tick = *rb->current_tick; start_tick = *rb->current_tick;