media: vivid: print time in y2038-safe way
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 16:46:17 +0000 (11:46 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:13:16 +0000 (11:13 -0500)
commit41e33085284dd2bc6b6180d8381ff8a509b9d8ba
tree3f70a95249406906351c0e0b7c6febde94665dc8
parentd5ac225c7d64c9c3ef821239edc035634e594ec9
media: vivid: print time in y2038-safe way

time_to_tm() takes a time_t value that overflows in 2038 on 32-bit
systems. time64_to_tm() doesn't have this problem, so let's use that in
combination with ktime_get_real_seconds() to read a 64-bit time
value.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-rds-gen.c
drivers/media/platform/vivid/vivid-vbi-gen.c