media: dw9807-vcm: Add regulator support to the driver
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 16:35:59 +0000 (16:35 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:26 +0000 (11:33 +0000)
commit9c983dafdbe925744fac49d4f8e2afddad27e437
tree2e512b60fed661475203842c3429156f0e026690
parente081e7772efc134c4204c2e9bf39c6817a8c60c2
media: dw9807-vcm: Add regulator support to the driver

Uses the regulator notifier framework so that the current
focus position will be restored whenever any user of the
regulator powers it up. This means that should the VCM
and sensor share a common regulator then starting the sensor
will automatically restore the default position. If they
have independent regulators then it will behave be powered
up when the VCM subdev is opened.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/dw9807-vcm.c