summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/1g2g
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-07-16 11:02:14 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-07-16 11:02:14 +0000
commita12894c6dc53156ac6af2d270f1ce31f45a2aa17 (patch)
tree137c44085ed515db43cdfa6348453e34fcf6f509 /firmware/target/arm/ipod/1g2g
parenteb66b559e1566ffaf9ee7af6d19f7ea9b55fd2e5 (diff)
Ensure consistency between header file and implementation for iPod drivers, by #including the appropriate header file and #ifdef'fing out unused code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod/1g2g')
-rw-r--r--firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c2
-rw-r--r--firmware/target/arm/ipod/1g2g/adc-target.h1
-rw-r--r--firmware/target/arm/ipod/1g2g/backlight-1g2g.c3
3 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
index 1a5379be89..cfeb78d198 100644
--- a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
+++ b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
@@ -23,6 +23,8 @@
#include "cpu.h"
#include "hwcompat.h"
#include "kernel.h"
+#include "adc.h"
+#include "adc-target.h"
static struct mutex adc_mtx SHAREDBSS_ATTR;
diff --git a/firmware/target/arm/ipod/1g2g/adc-target.h b/firmware/target/arm/ipod/1g2g/adc-target.h
index c9e9417614..5b0ce4b4ae 100644
--- a/firmware/target/arm/ipod/1g2g/adc-target.h
+++ b/firmware/target/arm/ipod/1g2g/adc-target.h
@@ -29,6 +29,7 @@
/* Force a scan now */
unsigned short adc_scan(int channel);
+void ipod_2g_adc_int(void);
static inline unsigned short adc_read(int channel)
{
return adc_scan(channel);
diff --git a/firmware/target/arm/ipod/1g2g/backlight-1g2g.c b/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
index 0e208b2312..b7797813ec 100644
--- a/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
+++ b/firmware/target/arm/ipod/1g2g/backlight-1g2g.c
@@ -20,8 +20,9 @@
****************************************************************************/
#include "config.h"
#include "system.h"
-#include "backlight.h"
#include "lcd.h"
+#include "backlight.h"
+#include "backlight-target.h"
void _backlight_on(void)
{