bcm2835-camera: Fix timestamp calculation problem (#2214)
authorDavid H <davidjhu@gmail.com>
Wed, 4 Oct 2017 11:43:07 +0000 (04:43 -0700)
committerpopcornmix <popcornmix@gmail.com>
Wed, 4 Oct 2017 11:43:07 +0000 (12:43 +0100)
commitcb0f9729052e882a85816c795beec2f6e982eea2
tree574d8905702df633f236dca190c30de8b451310e
parent8af328b2e65c58f5d7153b03a18f314a371c8fd1
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