media: ov08x40: Fix hblank out of range issue
authorJason Chen <jason.z.chen@intel.com>
Mon, 29 May 2023 11:10:41 +0000 (13:10 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 14 Jul 2023 11:05:05 +0000 (13:05 +0200)
commit2cd17b9bc1ae8d94d4eb925f8e6abc8ad6e141f5
tree11fc91652120281e59e4204431fbed01c9d1bf22
parent4106cd72e73ca9f1d78d4e6aaaaf1a9cd310b57f
media: ov08x40: Fix hblank out of range issue

The HTS value cannot be directly compared to the sensor's output
size. It needs to be converted to an absolute time unit.
Additionally, the hblank value need to be modified as it was
previous invalid.

Signed-off-by: Jason Chen <jason.z.chen@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov08x40.c