OpenCloudOS-Kernel/drivers/net/can/usb
Arnd Bergmann aa4f3c660a can: peak_usb: use ktime_t consistently
This changes the calculation of the timestamps to use ktime_t
instead of struct timeval as the base. This gets rid of one
of the few remaining users of the deprecated ktime_to_timeval()
and timeval_to_ktime() helpers.

The code should also get more efficient, as we have now removed
all of the divisions.

I have left the cut-off for resetting the counters as 4.200
seconds, in order to leave the behavior unchanged otherwise.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2017-12-01 09:14:22 +01:00
..
peak_usb can: peak_usb: use ktime_t consistently 2017-12-01 09:14:22 +01:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-26 22:39:08 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ems_usb.c net: can: usb: ems_usb: don't print error when allocating urb fails 2016-08-13 14:53:38 -07:00
esd_usb2.c can: esd_usb2: Fix can_dlc value for received RTR, frames 2017-10-19 13:05:54 +02:00
gs_usb.c can: gs_usb: fix busy loop if no more TX context is available 2017-10-19 13:05:54 +02:00
kvaser_usb.c can: kvaser_usb: Ignore CMD_FLUSH_QUEUE_REPLY messages 2017-10-24 13:00:36 +02:00
mcba_usb.c can: mcba_usb: Add support for Microchip CAN BUS Analyzer 2017-04-25 09:00:49 +02:00
usb_8dev.c can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer 2017-03-03 13:00:07 +01:00