]> git.itanic.dy.fi Git - linux-stable/commit
media: ov2740: Fix hts value
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 12:39:42 +0000 (13:39 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 13 Dec 2023 12:21:20 +0000 (13:21 +0100)
commit3735228bbe3511f844e03dfcc4003fadb59dde23
tree4ef5a6c1caaee8c12741f907c23fe5f9cbabce55
parent41543c7ccc682f7ec713dbe19be67fa694088f9c
media: ov2740: Fix hts value

HTS must be more then width, so the 1080 value clearly is wrong,
this is then corrected with some weird math dividing clocks in
to_pixels_per_line() which results in the hts getting multiplied by 2,
resulting in 2160.

Instead just directly set hts to the correct value of 2160 and
drop to_pixels_per_line().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c