]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ad4b2675ce76188f0310d3349e94a90df128391
tree1ff3f431deef6449560047badc8271945e6710a0
parent7ef43eda7f52b27b0a966ed4f2d785b42383a2a3
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