summaryrefslogtreecommitdiff
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 @@
38#include "usb.h" 38#include "usb.h"
39#include "wifi.h" 39#include "wifi.h"
40#include "powermgmt.h" 40#include "powermgmt.h"
41#if !defined(DX50) && !defined(DX90)
42#include "adc.h" 41#include "adc.h"
43#endif
44#include "i2c.h" 42#include "i2c.h"
45#ifndef DEBUG 43#ifndef DEBUG
46#include "serial.h" 44#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 @@
24#include "kernel.h" 24#include "kernel.h"
25#include "thread.h" 25#include "thread.h"
26#include "debug.h" 26#include "debug.h"
27#if !defined(DX50) && !defined(DX90)
28#include "adc.h" 27#include "adc.h"
29#endif
30#include "string.h" 28#include "string.h"
31#include "storage.h" 29#include "storage.h"
32#include "power.h" 30#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