media: rc: Replace timeval with ktime_t in imon.c
authorChunyan Zhang <zhang.chunyan@linaro.org>
Mon, 6 Nov 2017 14:06:10 +0000 (09:06 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 15:35:27 +0000 (10:35 -0500)
commit1edba6484b19d288e11722d72b55a4b919fb059e
tree5417bb53998d9eeefdb22146d9f83e0ea25c5d06
parent4957133fe32fec9a5fc57ce95b6107e976dcc251
media: rc: Replace timeval with ktime_t in imon.c

This patch changes the 32-bit time type (timeval) to the 64-bit one
(ktime_t), since 32-bit time types will break in the year 2038.

I use ktime_t instead of all uses of timeval in imon.c

This patch also changes do_gettimeofday() to ktime_get() accordingly,
since ktime_get returns a ktime_t, but do_gettimeofday returns a
struct timeval, and the other reason is that ktime_get() uses
the monotonic clock.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/imon.c