iio: use timespec64 based interfaces for iio_get_time_ns()
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 15:31:36 +0000 (17:31 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Jun 2018 13:45:06 +0000 (14:45 +0100)
commit45e7f5d2889a35b6e1b0eecdcc2e0a1ebac071bf
treec4b519a99f20d9d9cb0ccac224b9015aa7b97eb9
parent5f1d651fbfa7d9de678c58329c645727261e5cb8
iio: use timespec64 based interfaces for iio_get_time_ns()

We have replacements for all the deprecated timespec based interfaces now,
so this can finally convert iio_get_time_ns() to consistently use the
nanosecond or timespec64 based interfaces instead, avoiding the y2038
overflow.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c