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>
Sun, 8 Oct 2017 01:09:30 +0000 (01:09 +0000)
commit9c41340db6817f0281804f9a4ee3db18c1a0ddaf
treefb529b65b28fb472bae2b441608f0a622f0f3d0c
parent172ceca9e227c92efffebf9e96c216b8ae24df50
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