media: camss: Set unused regulators to the empty set
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 11 Jan 2022 12:52:10 +0000 (13:52 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 10:46:37 +0000 (11:46 +0100)
commit81bdfa4f86ade3417552b08e5ee1eea6d0f58375
tree1ff3f431deef6449560047badc8271945e6710a0
parent0d8140179715465c4fa976b516e3428bf3fc2e43
media: camss: Set unused regulators to the empty set

If a CAMSS block has no regulator set the regulator array to the empty set
as opposed to setting the first element of the array to NULL.

Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@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.c