summaryrefslogtreecommitdiffstats
path: root/firmware/ifp_usb_serial.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
commitfdd4aef34003587d7fd9ed754dd35ce901b639bf (patch)
treed129b8b8e587d4a1a7215c2226bfafe55f6dd643 /firmware/ifp_usb_serial.c
parentc907e127f8b1d267e91e82d28cdb210288852b82 (diff)
downloadrockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.tar.gz
rockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.tar.bz2
rockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.zip
Make thirty functions static to reduce binary size
If any of those functions should be (unused) API functions, they can easily be turned back once really needed. Detected using a new cppcheck check that uses the internal symbol database to catch functions that are only used in the current file. Change-Id: Ic2b1e5b8020b76397f11cefc4e205f3b7ac1f184
Diffstat (limited to 'firmware/ifp_usb_serial.c')
-rw-r--r--firmware/ifp_usb_serial.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/ifp_usb_serial.c b/firmware/ifp_usb_serial.c
index 5392de0d52..f7e3a51858 100644
--- a/firmware/ifp_usb_serial.c
+++ b/firmware/ifp_usb_serial.c
@@ -250,7 +250,7 @@ static inline void usb_select_setup_endpoint(void)
ISP1582_EPINDEX = 0x20;
}
-void usb_setup_endpoint(int idx, int max_pkt_size, int type)
+static void usb_setup_endpoint(int idx, int max_pkt_size, int type)
{
struct usb_endpoint *ep;
@@ -271,7 +271,7 @@ void usb_setup_endpoint(int idx, int max_pkt_size, int type)
ep->max_pkt_size[epidx_dir(idx)] = max_pkt_size;
}
-void usb_disable_endpoint(int idx)
+static void usb_disable_endpoint(int idx)
{
usb_select_endpoint(idx);
ISP1582_EPTYPE &= 8;
@@ -288,12 +288,12 @@ void usb_reconnect(void)
ISP1582_MODE |= 1; /* SOFTCT on */
}
-void usb_cleanup(void)
+static void usb_cleanup(void)
{
ISP1582_MODE &= ~1; /* SOFTCT off */
}
-void usb_setup(int reset)
+static void usb_setup(int reset)
{
int i;
@@ -840,7 +840,7 @@ static void usb_handle_int(int i)
}
-void usb_handle_interrupts(void)
+static void usb_handle_interrupts(void)
{
#ifdef LCD_DEBUG
char s[20];
@@ -1002,7 +1002,7 @@ static void serial_free_out_fifo(int ep, unsigned char *buf, int len)
serial_restart_output(ep);
}
-void usb_serial_handle(void)
+static void usb_serial_handle(void)
{
#ifdef BUTTONS
static int t = 0;