]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: ov01a10: Store dev pointer in struct ov01a10
authorHans de Goede <hansg@kernel.org>
Tue, 14 Oct 2025 17:40:18 +0000 (19:40 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:28:48 +0000 (12:28 +0100)
commitad134ffad2efcb490a75fa1720f9aa43d0f84fe0
tree0b2f37ec6da2427b469a759a0c62500252f95f93
parentf60e94ed1aa110e48c7798a2fc99022e3b03239b
media: i2c: ov01a10: Store dev pointer in struct ov01a10

Now that the cci_* register access helpers are used we no longer need
the i2c_client in various functions.

Some code is still getting the client just to be able to get to the device
pointer. Directly store a struct device *dev pointing to &client->dev
inside struct ov01a10 to make the code simpler.

This also fixes a mismatch of using dev vs &client->dev in the
runtime_pm_*() calls in probe().

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