]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/arm-smmu: Refactor qcom_smmu structure to include single pointer
authorBibek Kumar Patro <quic_bibekkum@quicinc.com>
Thu, 12 Dec 2024 15:13:59 +0000 (20:43 +0530)
committerWill Deacon <will@kernel.org>
Tue, 7 Jan 2025 13:26:51 +0000 (13:26 +0000)
commit445d7a8ed90e1725d148f2ce0f87d3ef3dd5f7ff
treec84b54f9648c4675dd6a9afe2a507595683ea12d
parentef4144b1b47dba61ebf19b9567013afdba5225dd
iommu/arm-smmu: Refactor qcom_smmu structure to include single pointer

qcom_smmu_match_data is static and constant so refactor qcom_smmu to
store single pointer to qcom_smmu_match_data instead of replicating
multiple child members of the same and handle the further dereferences
in the places that want them.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Bibek Kumar Patro <quic_bibekkum@quicinc.com>
Link: https://lore.kernel.org/r/20241212151402.159102-3-quic_bibekkum@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h