summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-30 00:20:01 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-05 13:14:47 -0500
commit8eb685ffdf6e922156c84a2d5b189fb3914fda7a (patch)
tree907392208825869baf35c8090a5b17ebd3560f9d
parenta6e90d23550b83cf6c83db4f3e3046b7b196c1fd (diff)
downloadrockbox-8eb685ffdf6e922156c84a2d5b189fb3914fda7a.tar.gz
rockbox-8eb685ffdf6e922156c84a2d5b189fb3914fda7a.zip
Remove a couple of #ifdefs
Give iBasso DX50/DX90 empty adc-target.h headers like all the other hosted targets to avoid special cases. Change-Id: Iaae15642fdec4ff18bc9ac01245753135128f676
-rw-r--r--apps/main.c2
-rw-r--r--firmware/powermgmt.c2
-rw-r--r--firmware/target/hosted/ibasso/dx50/adc-target.h0
-rw-r--r--firmware/target/hosted/ibasso/dx90/adc-target.h0
4 files changed, 0 insertions, 4 deletions
diff --git a/apps/main.c b/apps/main.c
index 3b7ec6d4c1..a88cd73ef7 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -38,9 +38,7 @@
#include "usb.h"
#include "wifi.h"
#include "powermgmt.h"
-#if !defined(DX50) && !defined(DX90)
#include "adc.h"
-#endif
#include "i2c.h"
#ifndef DEBUG
#include "serial.h"
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 8bfd41939f..8c807e5382 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -24,9 +24,7 @@
#include "kernel.h"
#include "thread.h"
#include "debug.h"
-#if !defined(DX50) && !defined(DX90)
#include "adc.h"
-#endif
#include "string.h"
#include "storage.h"
#include "power.h"
diff --git a/firmware/target/hosted/ibasso/dx50/adc-target.h b/firmware/target/hosted/ibasso/dx50/adc-target.h
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/firmware/target/hosted/ibasso/dx50/adc-target.h
diff --git a/firmware/target/hosted/ibasso/dx90/adc-target.h b/firmware/target/hosted/ibasso/dx90/adc-target.h
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/firmware/target/hosted/ibasso/dx90/adc-target.h