On Tue, Nov 03, 2015 at 05:39:00PM +0100, Arnd Bergmann wrote:
On Tuesday 27 October 2015 13:17:02 Amitoj Kaur Chawla wrote:
This driver uses 'struct timeval' which we are trying to remove since 32 bit time types will break in the year 2038 by replacing it with ktime_t.
This patch changes do_gettimeofday() to ktime_get() because ktime_get() returns ktime_t while do_gettimeofday() returns struct timeval.
This patch also uses ktime_ms_delta() to get the elapsed time in milliseconds.
Signed-off-by: Amitoj Kaur Chawla amitoj1606@gmail.com
The patch looks good to me, but after checking an old tree of mine, I found that I already have a patch from Tapasweni Pathak for the same thing. For some reason Greg did not apply it to staging back then. I'll send it out to the list for Greg to apply now to ensure this doesn't happen again.
Greg is not in charge of drivers/staging/media/* so don't send it to him, he will just ignore it :)