[media] dvb-frontend: Replace timeval with ktime_t
authorTina Ruchandani <ruchandani.tina@gmail.com>
Sun, 31 May 2015 07:17:06 +0000 (04:17 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Jun 2015 00:09:51 +0000 (21:09 -0300)
commit9056a23ba19d911d4a079b8ca543fb8ebffa7c56
treec4c4317831ba2bf1e12f04fe689715f2c7378677
parentd3525b632a0b5e113fb78b7db84598e082cf903b
[media] dvb-frontend: Replace timeval with ktime_t

struct timeval uses a 32-bit seconds representation which will
overflow in the year 2038 and beyond. This patch replaces
the usage of struct timeval with ktime_t which is a 64-bit
timestamp and is year 2038 safe.
This patch is part of a larger attempt to remove all instances
of 32-bit timekeeping variables (timeval, timespec, time_t)
which are not year 2038 safe, from the kernel.

[mchehab@osg.samsung.com: add a missing parenthesis, breaking compilation]
Suggested-by: Arnd Bergmann <arndb@arndb.de>
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/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h
drivers/media/dvb-frontends/stv0299.c