drivers: sensors: migrate k2hh.c to alarmtimer interface

This commit is contained in:
Francescodario Cuzzocrea 2019-08-08 10:36:21 +02:00
parent 6348461088
commit 437376b315
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ static void k2hh_work_func(struct work_struct *work)
int ret;
struct k2hh_v acc;
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;
int time_hi, time_lo;