|
@@ -277,14 +277,7 @@ static inline bool iio_channel_has_info(const struct iio_chan_spec *chan,
|
|
|
**/
|
|
|
static inline s64 iio_get_time_ns(void)
|
|
|
{
|
|
|
- struct timespec ts;
|
|
|
- /*
|
|
|
- * calls getnstimeofday.
|
|
|
- * If hrtimers then up to ns accurate, if not microsecond.
|
|
|
- */
|
|
|
- ktime_get_real_ts(&ts);
|
|
|
-
|
|
|
- return timespec_to_ns(&ts);
|
|
|
+ return ktime_get_real_ns();
|
|
|
}
|
|
|
|
|
|
/* Device operating modes */
|