OSDN Git Service
(root)
/
android-x86
/
hardware-intel-libsensors.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverse the default orientation of accelerometer
[android-x86/hardware-intel-libsensors.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index
6ec6f64
..
688be53
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-20,7
+20,6
@@
#include <utils/Log.h>
#include <hardware/sensors.h>
#include <utils/Atomic.h>
#include <utils/Log.h>
#include <hardware/sensors.h>
#include <utils/Atomic.h>
-#include <linux/android_alarm.h>
#include "common.h"
#include "utils.h"
#include "common.h"
#include "utils.h"
@@
-203,7
+202,7
@@
int sysfs_read_str(const char path[PATH_MAX], char *buf, int buf_len)
int64_t get_timestamp (clockid_t clock_id)
{
int64_t get_timestamp (clockid_t clock_id)
{
- struct timespec ts = {0};
+ struct timespec ts = {0
, 0
};
if (!clock_gettime(clock_id, &ts))
return 1000000000LL * ts.tv_sec + ts.tv_nsec;
if (!clock_gettime(clock_id, &ts))
return 1000000000LL * ts.tv_sec + ts.tv_nsec;