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>
Thu, 15 Feb 2018 17:39:18 +0000 (17:39 +0000)
commitb0afb1d1575e8572abd70b4c9183e591104c1a8b
tree3af02f2e2b50fc148a12779b381ff3ea93459ebe
parentd0603781f9dfdb2c35d68afa4ae347f260201da5
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