[media] media: ov7670: calculate framerate properly for ov7675
authorJavier Martin <javier.martin@vista-silicon.com>
Tue, 29 Jan 2013 10:16:59 +0000 (07:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 8 Feb 2013 16:27:48 +0000 (14:27 -0200)
commitf6dd927f34d64014c4b196132b5cdf9f2e2a3ae5
tree0bba7563d6acbcc3c53bcd8e3b02e9e4def95524
parentf748cd3ec8039a01d260ba0d51687afdf93c6e67
[media] media: ov7670: calculate framerate properly for ov7675

According to the datasheet ov7675 uses a formula to achieve
the desired framerate that is different from the operations
done in the current code.
In fact, this formula should apply to ov7670 too. This would
mean that current code is wrong but, in order to preserve
compatibility, the new formula will be used for ov7675 only.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/ov7670.c