aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-27 06:42:34 -0500
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-12-01 10:31:47 -0500
commitb6dc80dbe6cdf4effd5a07bcd37f34cbf25eb07a (patch)
tree9aa050c3fc54d19029a90b1ef56c9bbc486f2909
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
HSI: cmt_speech: use timespec64 instead of timespec
struct timespec should no longer be used because of the y2038 overflow problem. This code does not suffer from the overflow, but it's trivial to change it to use timespec64 without changing the interface, so let's do that. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-rw-r--r--drivers/hsi/clients/cmt_speech.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c
index 727f968ac1cb..05b80723d39d 100644
--- a/drivers/hsi/clients/cmt_speech.c
+++ b/drivers/hsi/clients/cmt_speech.c
@@ -451,11 +451,11 @@ static void cs_hsi_read_on_control_complete(struct hsi_msg *msg)
451 dev_dbg(&hi->cl->device, "Read on control: %08X\n", cmd); 451 dev_dbg(&hi->cl->device, "Read on control: %08X\n", cmd);
452 cs_release_cmd(msg); 452 cs_release_cmd(msg);
453 if (hi->flags & CS_FEAT_TSTAMP_RX_CTRL) { 453 if (hi->flags & CS_FEAT_TSTAMP_RX_CTRL) {
454 struct timespec tspec; 454 struct timespec64 tspec;
455 struct cs_timestamp *tstamp = 455 struct cs_timestamp *tstamp =
456 &hi->mmap_cfg->tstamp_rx_ctrl; 456 &hi->mmap_cfg->tstamp_rx_ctrl;
457 457
458 ktime_get_ts(&tspec); 458 ktime_get_ts64(&tspec);
459 459
460 tstamp->tv_sec = (__u32) tspec.tv_sec; 460 tstamp->tv_sec = (__u32) tspec.tv_sec;
461 tstamp->tv_nsec = (__u32) tspec.tv_nsec; 461 tstamp->tv_nsec = (__u32) tspec.tv_nsec;