]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov01a10: Optimize setting h/vflip values
authorHans de Goede <hansg@kernel.org>
Tue, 14 Oct 2025 17:40:30 +0000 (19:40 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:28:49 +0000 (12:28 +0100)
commit0c5ebba56b10cf6b09da6d90c7be8ad3b0c5c083
treed7eb7061d33ca90342cc7bfb18cd2c548c93e9d7
parent12d3c5ffe298d99b4c0d87f8d381ae701bd71462
media: i2c: ov01a10: Optimize setting h/vflip values

Since ov01a10_global_setting[] sets the initial format1 register value,
there is no need to do a read-write-modify when setting the flip controls.

Only write format1 when setting the flip-controls and remove the now
unnecessary format1 register init from ov01a10_global_setting[].

Signed-off-by: Hans de Goede <hansg@kernel.org>
Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov01a10.c