summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-08-01 11:10:39 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-08-01 11:10:39 +0000
commitbefffc877d41652963052312912a5ee86a5f3b6a (patch)
treeaff4ad1d4704db418647eb9479629c10cfee4b27
parent52e67f33666276d25bcafc9e1f77d660ca65ed03 (diff)
downloadrockbox-befffc877d41652963052312912a5ee86a5f3b6a.tar.gz
rockbox-befffc877d41652963052312912a5ee86a5f3b6a.tar.bz2
rockbox-befffc877d41652963052312912a5ee86a5f3b6a.zip
More minor const/static/include fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27652 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/audio/uda1380.c8
-rw-r--r--firmware/target/coldfire/iaudio/ata-iaudio.c1
-rw-r--r--firmware/target/coldfire/iaudio/usb-iaudio.c1
-rw-r--r--firmware/target/coldfire/iriver/h300/usb-h300.c1
4 files changed, 7 insertions, 4 deletions
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c
index c9fef1d9ab..fd32b398ca 100644
--- a/firmware/drivers/audio/uda1380.c
+++ b/firmware/drivers/audio/uda1380.c
@@ -85,14 +85,14 @@ int tenthdb2mixer(int db)
/* ------------------------------------------------- */
static int uda1380_write_reg(unsigned char reg, unsigned short value);
-unsigned short uda1380_regs[0x30];
-short recgain_mic;
-short recgain_line;
+static unsigned short uda1380_regs[0x30];
+static short recgain_mic;
+static short recgain_line;
/* Definition of a playback configuration to start with */
#define NUM_DEFAULT_REGS 13
-unsigned short uda1380_defaults[2*NUM_DEFAULT_REGS] =
+static const unsigned short uda1380_defaults[2*NUM_DEFAULT_REGS] =
{
REG_0, EN_DAC | EN_INT | EN_DEC |
#ifdef USE_WSPLL
diff --git a/firmware/target/coldfire/iaudio/ata-iaudio.c b/firmware/target/coldfire/iaudio/ata-iaudio.c
index d27fa8eb7c..4a70456ed2 100644
--- a/firmware/target/coldfire/iaudio/ata-iaudio.c
+++ b/firmware/target/coldfire/iaudio/ata-iaudio.c
@@ -25,6 +25,7 @@
#include "system.h"
#include "power.h"
#include "pcf50606.h"
+#include "ata-target.h"
void ata_reset(void)
{
diff --git a/firmware/target/coldfire/iaudio/usb-iaudio.c b/firmware/target/coldfire/iaudio/usb-iaudio.c
index f03942667d..658264ab69 100644
--- a/firmware/target/coldfire/iaudio/usb-iaudio.c
+++ b/firmware/target/coldfire/iaudio/usb-iaudio.c
@@ -23,6 +23,7 @@
#include "cpu.h"
#include "system.h"
#include "usb.h"
+#include "usb-target.h"
void usb_init_device(void)
{
diff --git a/firmware/target/coldfire/iriver/h300/usb-h300.c b/firmware/target/coldfire/iriver/h300/usb-h300.c
index 895bf37f2b..1a76a21fc4 100644
--- a/firmware/target/coldfire/iriver/h300/usb-h300.c
+++ b/firmware/target/coldfire/iriver/h300/usb-h300.c
@@ -24,6 +24,7 @@
#include "system.h"
#include "kernel.h"
#include "usb.h"
+#include "usb-target.h"
void usb_init_device(void)
{