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
This commit is contained in:
Solomon Peachy 2020-10-17 14:36:23 -04:00
parent 0e667ff5b0
commit 13f5e123f9
2 changed files with 7 additions and 7 deletions

View File

@ -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
#endif

View File

@ -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