mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
drivers: sensors: migrate k2hh.c to alarmtimer interface
This commit is contained in:
parent
6348461088
commit
437376b315
1 changed files with 1 additions and 1 deletions
|
@ -510,7 +510,7 @@ static void k2hh_work_func(struct work_struct *work)
|
||||||
int ret;
|
int ret;
|
||||||
struct k2hh_v acc;
|
struct k2hh_v acc;
|
||||||
struct k2hh_p *data = container_of(work, struct k2hh_p, work);
|
struct k2hh_p *data = container_of(work, struct k2hh_p, work);
|
||||||
struct timespec ts = ktime_to_timespec(alarm_get_elapsed_realtime());
|
struct timespec ts = ktime_to_timespec(ktime_get_boottime());
|
||||||
u64 timestamp_new = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
u64 timestamp_new = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
|
||||||
int time_hi, time_lo;
|
int time_hi, time_lo;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue