diff options
Diffstat (limited to 'firmware/target/hosted/ypr0')
-rw-r--r-- | firmware/target/hosted/ypr0/ascodec-ypr0.c | 3 | ||||
-rw-r--r-- | firmware/target/hosted/ypr0/powermgmt-ypr0.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/hosted/ypr0/ascodec-ypr0.c b/firmware/target/hosted/ypr0/ascodec-ypr0.c index 954b4d95ef..cc923842df 100644 --- a/firmware/target/hosted/ypr0/ascodec-ypr0.c +++ b/firmware/target/hosted/ypr0/ascodec-ypr0.c | |||
@@ -50,10 +50,9 @@ struct codec_req_struct { | |||
50 | #define IOCTL_SUBREG_READ 0x80034103 | 50 | #define IOCTL_SUBREG_READ 0x80034103 |
51 | 51 | ||
52 | 52 | ||
53 | int ascodec_init(void) | 53 | void ascodec_init(void) |
54 | { | 54 | { |
55 | afe_dev = open("/dev/afe", O_RDWR); | 55 | afe_dev = open("/dev/afe", O_RDWR); |
56 | return afe_dev; | ||
57 | } | 56 | } |
58 | 57 | ||
59 | void ascodec_close(void) | 58 | void ascodec_close(void) |
diff --git a/firmware/target/hosted/ypr0/powermgmt-ypr0.c b/firmware/target/hosted/ypr0/powermgmt-ypr0.c index 6aba9c7ef5..45ff2ae737 100644 --- a/firmware/target/hosted/ypr0/powermgmt-ypr0.c +++ b/firmware/target/hosted/ypr0/powermgmt-ypr0.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "powermgmt.h" | 22 | #include "powermgmt.h" |
23 | #include "power.h" | 23 | #include "power.h" |
24 | #include "file.h" | 24 | #include "file.h" |
25 | #include "as3514.h" | 25 | #include "adc.h" |
26 | #include "sc900776.h" | 26 | #include "sc900776.h" |
27 | 27 | ||
28 | const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = | 28 | const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = |