linux/drivers/staging/media
Arnd Bergmann f07c73fea2 [media] staging: media: lirc: Replace timeval with ktime_t in lirc_sasem.c
'struct timeval presstime' and 'struct timeval tv' is used to
calculate the time since the last button press.

32-bit systems using 'struct timeval' will break in the year 2038,
so we have to replace that code with more appropriate types.
This patch changes the media: lirc driver to use ktime_t.

ktime_get() is  better than using do_gettimeofday(), because it uses
the monotonic clock. ktime_sub() are used to subtract two ktime
variables. 'ms' is only used to check how much time has passed by comparing
to 250. So instead of using expensive ktime_to_ms() call, it has been
changed to hold nanoseconds by using ktime_to_ns().

Build tested it. Tested with sparse too.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-12-03 16:19:36 -02:00
..
bcm2048 [media] radio-bcm2048: fix code indent 2015-12-03 16:15:16 -02:00
cxd2099 staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
davinci_vpfe [media] staging: media: davinci_vpfe: fix ipipe_mode type 2015-11-17 14:27:28 -02:00
lirc [media] staging: media: lirc: Replace timeval with ktime_t in lirc_sasem.c 2015-12-03 16:19:36 -02:00
mn88472 [media] staging: media: Drop owner assignment from i2c_driver 2015-08-11 13:02:49 -03:00
mn88473 [media] staging: media: Drop owner assignment from i2c_driver 2015-08-11 13:02:49 -03:00
omap4iss [media] media: omap4iss: Make module stop timeout print a warning message 2015-11-19 11:14:51 -02:00
Kconfig [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00
Makefile [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00