From f31f3d32709e92b71394561fae1adbee59ec4395 Mon Sep 17 00:00:00 2001 From: Anna Boettcher Date: Mon, 15 Mar 2021 10:38:13 -0700 Subject: [PATCH] Remove old do_gettimeofday call --- drivers/input/touchscreen/cyttsp5_device_access.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp5_device_access.c b/drivers/input/touchscreen/cyttsp5_device_access.c index fa5b8196b8d3..2de71eb5d25b 100644 --- a/drivers/input/touchscreen/cyttsp5_device_access.c +++ b/drivers/input/touchscreen/cyttsp5_device_access.c @@ -1833,12 +1833,10 @@ int prepare_print_data(char *out_buf, int32_t *in_buf, int index, int data_num) int save_header(char *out_buf, int index, struct result *result) { - struct timex txc; struct rtc_time tm; char time_buf[100] = {0}; - do_gettimeofday(&(txc.time)); - rtc_time_to_tm(txc.time.tv_sec, &tm); + tm = rtc_ktime_to_tm(ktime_get_real()); scnprintf(time_buf, 100, "%d/%d/%d,TIME,%d:%d:%d,", tm.tm_year+1900, tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);