bcm2835-camera: Fix timestamp calculation problem (#2214)
authorDavid H <davidjhu@gmail.com>
Wed, 4 Oct 2017 11:43:07 +0000 (04:43 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:55:30 +0000 (15:55 +0100)
commit71c8e2eb4067c8370467f8d763dfae8b14f90c47
tree05e9e1cc6c32aea4727200a6949dc83f30c1f692
parentd3ba1d72c9edf93ad7b44b0630406414e3f02ddf
bcm2835-camera: Fix timestamp calculation problem (#2214)

* bcm2835-camera: Fix timestamp calculation problem

Use div_s64_rem() to convert usec timestamp to timeval
to avoid integer signedness bug.

* bcm2835-camera: Store kernel start time in NSEC instead of USEC

* bcm2835-camera: Reword debug message for clarity
drivers/media/platform/bcm2835/bcm2835-camera.c
drivers/media/platform/bcm2835/bcm2835-camera.h