diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 14:22:02 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 14:22:02 -0400 |
commit | 0e667ff5b0e3b7373609e9c438f69d8b12b33967 (patch) | |
tree | f9e6a376c2615e0143701a16d852e100f841db93 | |
parent | cd721754d0be63788c9792b18763d8cc582bfda0 (diff) | |
download | rockbox-0e667ff5b0e3b7373609e9c438f69d8b12b33967.tar.gz rockbox-0e667ff5b0e3b7373609e9c438f69d8b12b33967.zip |
sonynwz: use os-native opendir() in the low-level input driver code
instead of the rockbox opendir() wrapper.
Change-Id: I06e8c2d7997c7cc3d507f06659d46cdfd6a02ce3
-rw-r--r-- | firmware/target/hosted/sonynwz/button-nwz.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/firmware/target/hosted/sonynwz/button-nwz.c b/firmware/target/hosted/sonynwz/button-nwz.c index f85a4be496..05d72f6358 100644 --- a/firmware/target/hosted/sonynwz/button-nwz.c +++ b/firmware/target/hosted/sonynwz/button-nwz.c @@ -17,26 +17,28 @@ * KIND, either express or implied. * ****************************************************************************/ -#include "button.h" -//#define LOGF_ENABLE -#include "logf.h" -#include "panic.h" -#include "backlight.h" - -#include "nwz_keys.h" -#include "nwz_ts.h" #include <poll.h> -#include <dir.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <linux/input.h> +#include <dirent.h> #include <fcntl.h> #include <string.h> #include <stdlib.h> #include <system.h> +#include "button.h" +//#define LOGF_ENABLE +#include "logf.h" +#include "panic.h" +#include "backlight.h" + +#include "nwz_keys.h" +#include "nwz_ts.h" + + /* device types */ #define DEV_KEY 0 /* icx_keys driver */ #define DEV_TOUCH 1 /* icx_touch_screen driver */ |