Re: [PATCH 2/4] v4l: Helper function for obtaining timestamps

2012-11-16 Thread Hans Verkuil
On Thu November 15 2012 23:06:45 Sakari Ailus wrote: > v4l2_get_timestamp() produces a monotonic timestamp but unlike > ktime_get_ts(), it uses struct timeval instead of struct timespec, saving > the drivers the conversion job when getting timestamps for v4l2_buffer's > timestamp field. > > Signed

[PATCH 2/4] v4l: Helper function for obtaining timestamps

2012-11-15 Thread Sakari Ailus
v4l2_get_timestamp() produces a monotonic timestamp but unlike ktime_get_ts(), it uses struct timeval instead of struct timespec, saving the drivers the conversion job when getting timestamps for v4l2_buffer's timestamp field. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-common.c