media: ov13858: Limit vblank to permissible range
authorChiranjeevi Rapolu <chiranjeevi.rapolu@intel.com>
Fri, 18 Aug 2017 04:29:38 +0000 (00:29 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:35:11 +0000 (08:35 -0400)
commit17fcd5f5d0cda2aa269942492b834a009c1cc928
treef06714c1083d67e21091ac5c4a4dc7a9128805d2
parented351ad948dce56c55d6cce7afb351b67a841c83
media: ov13858: 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/ov13858.c