summaryrefslogtreecommitdiff
path: root/include/linux/hp_sdc.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-02 08:32:02 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-01-02 08:39:12 +0300
commitd09ac610eaaa0b3b29c3ac6c4e107cb1dbd4a356 (patch)
treec89a22a9aba9732f781eae65df3987a3f250915d /include/linux/hp_sdc.h
parent59d805af417809820ed54a8a02525b03bc74d62a (diff)
downloadlinux-d09ac610eaaa0b3b29c3ac6c4e107cb1dbd4a356.tar.xz
Input: hp_sdc - convert to ktime_get()
This gets rid of the deprecated do_gettimeofday() call in favor of ktime_get(), which is also more reliable as it uses monotonic times. The code now gets a bit simpler. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Patchwork-Id: 10076621 Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/hp_sdc.h')
-rw-r--r--include/linux/hp_sdc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hp_sdc.h b/include/linux/hp_sdc.h
index d392975d8887..6f1dee7e67e0 100644
--- a/include/linux/hp_sdc.h
+++ b/include/linux/hp_sdc.h
@@ -281,7 +281,7 @@ typedef struct {
hp_sdc_transaction *tq[HP_SDC_QUEUE_LEN]; /* All pending read/writes */
int rcurr, rqty; /* Current read transact in process */
- struct timeval rtv; /* Time when current read started */
+ ktime_t rtime; /* Time when current read started */
int wcurr; /* Current write transact in process */
int dev_err; /* carries status from registration */