media: camss: Add regulator_bulk support
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 11 Jan 2022 12:52:09 +0000 (13:52 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 10:46:12 +0000 (11:46 +0100)
commit0d8140179715465c4fa976b516e3428bf3fc2e43
treec729d5bb2b2e99ff942caadd0e9b55c0922c731d
parent088c0384bc87fe21ccd941765d20c7c31e6a6e90
media: camss: Add regulator_bulk support

Add the ability to enable or disable multiple regulators in bulk with
camss. This is useful for sm8250, sdm845 and it looks like sdm660 where we
have more than one CSI regulator to do at once.

It should just work for standalone existing vdda regulators and parts which
don't have an explicitly defined CSI regulator.

[hverkuil: fix camss-csid.c:163:13: warning: 'ret' may be used uninitialized in this function]

Reported-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/camss/camss-csid.c
drivers/media/platform/qcom/camss/camss-csid.h
drivers/media/platform/qcom/camss/camss.c
drivers/media/platform/qcom/camss/camss.h