]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov9282: implement try_ctrl for strobe_duration
authorRichard Leitner <richard.leitner@linux.dev>
Tue, 9 Dec 2025 22:44:42 +0000 (23:44 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 16 Jan 2026 13:08:53 +0000 (14:08 +0100)
commitb95d8058a2786a8b42e32f383f8df45097675d00
treeb952ae3f29c23687ca4cba65d393ff6a5e44a95f
parent84ec7597ae1afb9430c55044f318d1d40f8ecef0
media: i2c: ov9282: implement try_ctrl for strobe_duration

As the granularity of the hardware supported values is lower than the
control value, implement a try_ctrl() function for
V4L2_CID_FLASH_DURATION. This function calculates the nearest possible
µs strobe duration for the given value and returns it back to the
caller.

Signed-off-by: Richard Leitner <richard.leitner@linux.dev>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov9282.c