summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-17 14:36:23 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-17 14:37:15 -0400
commit13f5e123f92b85129622f5807b101dd75fdd73ae (patch)
treeb442f424f844f557b91a57f8dede12b7564790f7
parent0e667ff5b0e3b7373609e9c438f69d8b12b33967 (diff)
downloadrockbox-13f5e12.tar.gz
rockbox-13f5e12.zip
samsung yp-r0/r1: use os-native opendir() in the low-level driver code
Fixes blank LCD on both R0/R1 and the PMU on the R1 Change-Id: I356907676f7a0a009897fd4895bf78c1022b71d1
-rw-r--r--firmware/target/hosted/samsungypr/lcd-ypr.c4
-rw-r--r--firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/hosted/samsungypr/lcd-ypr.c b/firmware/target/hosted/samsungypr/lcd-ypr.c
index 8d9bfefbec..b8db2eedd1 100644
--- a/firmware/target/hosted/samsungypr/lcd-ypr.c
+++ b/firmware/target/hosted/samsungypr/lcd-ypr.c
@@ -23,11 +23,11 @@
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
+#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include "config.h"
-#include "file.h"
#include "debug.h"
#include "system.h"
#include "screendump.h"
@@ -117,4 +117,4 @@ void lcd_enable(bool enable)
if (enable)
send_event(LCD_EVENT_ACTIVATION, NULL);
}
-#endif \ No newline at end of file
+#endif
diff --git a/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c b/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c
index 9a8f9747ae..7eeea721a5 100644
--- a/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c
+++ b/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c
@@ -18,19 +18,19 @@
*
****************************************************************************/
-#include "config.h"
#include <sys/ioctl.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include "config.h"
#include "kernel.h"
#include "powermgmt.h"
#include "power.h"
-#include "file.h"
#include "adc.h"
#include "radio-ypr.h"
#include "pmu-ypr1.h"
#include "ioctl-ypr1.h"
-#include "stdio.h"
-#include "unistd.h"
-#include "fcntl.h"
#include "system.h"
#define MAX17040_VCELL 0x02