Right now we use the top-level camss structure to provide pointers viaReviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
VFE id index back to genpd linkages.
In effect this hard-codes VFE indexes to power-domain indexes in the
dtsi and mandates a very particular ordering of power domains in the
dtsi, which bears no relationship to a real hardware dependency.
As a first step to rationalising the VFE power-domain code and breaking
the magic indexing in dtsi use per-VFE pointers to genpd linkages.
The top-level index in msm_vfe_subdev_init is still used to attain the
initial so no functional or logical change arises from this change.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
+ if (vfe->id >= camss->res->vfe_num)P.S. this seems better suited for some warning, I think
return 0;