]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: qcom: camss: Add an id property to struct resources
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 14 Mar 2025 23:35:54 +0000 (23:35 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Apr 2025 11:29:06 +0000 (13:29 +0200)
commit5af908c2c93d5bfeec72125901aff991e5268015
tree57f8c50b0114ecd8f22d4d6da7fde35130afa1a0
parentb6fafb3941fa0f065def304d44d6c3c6d6ac0f64
media: qcom: camss: Add an id property to struct resources

In various places in CAMSS we assume a linear set of declared devices
{csiphy0, csiphy1, csiphy2} which currently works for upstream SoCs but for
upcoming SoCs some of the SoC resources will result in a set such as
{csiphy0, csiphy2} which will break the naive for() loops we have.

Introduce an identity property which resource declarations can populate
hence facilitating non-linear resource naming.

Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/camss/camss-csiphy.h
drivers/media/platform/qcom/camss/camss.c