]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: atomisp: convert timestamps to ktime_t
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 15:21:41 +0000 (10:21 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 29 Dec 2017 11:21:02 +0000 (06:21 -0500)
commit0244b9360c19a7b8ec77eac018a18e9b67221de9
treee51bb17205e016dec830b540f87911d02b710b37
parent8e360d1e51f540d7436f810c7476154934a72970
media: staging: atomisp: convert timestamps to ktime_t

timespec overflows in 2038 on 32-bit architectures, and the
getnstimeofday() suffers from possible time jumps, so the
timestamps here are better done using ktime_get(), which has
neither of those problems.

In case of ov2680, we don't seem to use the timestamp at
all, so I just remove it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/i2c/ov2680.h
drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c
drivers/staging/media/atomisp/i2c/ov5693/ov5693.h