media: ov5670: Limit vblank to permissible range
authorChiranjeevi Rapolu <chiranjeevi.rapolu@intel.com>
Thu, 17 Aug 2017 22:15:48 +0000 (18:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:34:30 +0000 (08:34 -0400)
commited351ad948dce56c55d6cce7afb351b67a841c83
tree0c53c260035cc12e6e107c5fc31090e029a78cd9
parent070ed82e32020dd9cc1ab3b5790b6b7d3f788e30
media: ov5670: Limit vblank to permissible range

Previously, vblank range given to user was too big, falling outside
of permissible range for a given resolution. Sometimes, too low vblank
resulted in errors.

Now, limit vblank to only permissible range for a given resolution.
This change limits lower-bounds of vblank, doesn't affect upper bounds.

Signed-off-by: Chiranjeevi Rapolu <chiranjeevi.rapolu@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov5670.c