[media] rc-core: Remove 'struct timeval' usage
authorTina Ruchandani <ruchandani.tina@gmail.com>
Thu, 29 Oct 2015 07:16:57 +0000 (05:16 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 11:31:45 +0000 (09:31 -0200)
commitdd4c22a61e0bdaf84202fcf84cb8f75ed7bb3552
tree7cef248203e463111c0dae2ff1cb2d47aae528d8
parent8c47311d34eccedb06bc60fc9435a53bd4aff392
[media] rc-core: Remove 'struct timeval' usage

streamzap uses 'struct timeval' to store the start time of a signal for
gap tracking. struct timeval uses a 32-bit seconds representation which
will overflow in year 2038 and beyond. Replace struct timeval with ktime_t
which uses a 64-bit seconds representation and is 2038 safe. This patch
uses ktime_get_real() preserving the use of wall-clock time in the
original code.

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/streamzap.c