usb: xhci: tegra: use time64_t for printing timestamp
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Nov 2017 14:34:27 +0000 (15:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Nov 2017 18:08:53 +0000 (19:08 +0100)
commit9506b146fad96b2888732a12711d6a3cec5ec4d4
treeb6cad5f73ecc4f5de50a4383dbf6abb7eea2b383
parent29ce32ecca842d73cd1c82f540a6fbde5d1ad44b
usb: xhci: tegra: use time64_t for printing timestamp

The time_t type and time_to_tm() function are deprecated because
of y2038 problems. In this driver, they are used to pretty-print
the timestamp of the firmware build. This is fine as long as
we don't get a firmware build past 2038.

Converting to time64_t and time64_to_tm() avoids the deprecated
interfaces and works until 2106, when the firmware-defined
data structure overflows.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c