From ef0d256b6f2df810e1db6507946402dca7f8b818 Mon Sep 17 00:00:00 2001 From: bertrik Date: Sat, 31 Jul 2010 13:41:06 +0000 Subject: [PATCH] Various minor clean-ups for mrobe git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27639 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 4 ++-- firmware/scroll_engine.c | 4 ++-- firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c | 9 ++++----- firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 7dca6454e..6840c16f2 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -224,7 +224,7 @@ static bool update_onvol_change(struct gui_wps * gwps) #ifdef HAVE_TOUCHSCREEN -int skintouch_to_wps(struct wps_data *data) +static int skintouch_to_wps(struct wps_data *data) { int offset = 0; int button = skin_get_touchaction(data, &offset); @@ -274,7 +274,7 @@ int skintouch_to_wps(struct wps_data *data) } return button; } -#endif +#endif /* HAVE_TOUCHSCREEN */ bool ffwd_rew(int button) { diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index 4fee7ed1d..fb1628a9c 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c @@ -47,8 +47,8 @@ static const char scroll_name[] = "scroll"; static struct scrollinfo lcd_scroll[LCD_SCROLLABLE_LINES]; #ifdef HAVE_REMOTE_LCD -struct scrollinfo lcd_remote_scroll[LCD_REMOTE_SCROLLABLE_LINES]; -struct event_queue scroll_queue; +static struct scrollinfo lcd_remote_scroll[LCD_REMOTE_SCROLLABLE_LINES]; +static struct event_queue scroll_queue; #endif struct scroll_screen_info lcd_scroll_info = diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c index 98d41c761..2e3a8bed3 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c @@ -109,12 +109,11 @@ void lcd_remote_off(void) /* This is the maximum transfer size to the remote (op 0x51= 7 bytes setup+79 * bytes screen data+xor+sum */ -unsigned char remote_payload[88]; -unsigned char remote_payload_size; -bool remote_repeat_draw=false; +static unsigned char remote_payload[88]; +static unsigned char remote_payload_size; -unsigned char remote_draw_x, remote_draw_y, - remote_draw_width, remote_draw_height; +static unsigned char remote_draw_x, remote_draw_y, + remote_draw_width, remote_draw_height; /* Monitor remote hotswap */ static void remote_tick(void) diff --git a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c index c4693d632..153b589b6 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c @@ -127,7 +127,7 @@ size_t pcm_get_bytes_waiting(void) } /* Only used when debugging */ -char buffer[80]; +static char buffer[80]; void DSPHINT(void) __attribute__ ((section(".icode"))); void DSPHINT(void) -- 2.11.4.GIT