diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-02-16 15:40:25 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-03-01 13:46:57 +0100 |
commit | b42a905b6aad40c092cf17f4b295a4c389bc7206 (patch) | |
tree | b2a098462564665e16d69d9ad22f8a2a5857b0c3 /drivers/iommu/rockchip-iommu.c | |
parent | iommu: constify pointer to bus_type (diff) | |
download | linux-b42a905b6aad40c092cf17f4b295a4c389bc7206.tar.xz linux-b42a905b6aad40c092cf17f4b295a4c389bc7206.zip |
iommu: constify of_phandle_args in xlate
The xlate callbacks are supposed to translate of_phandle_args to proper
provider without modifying the of_phandle_args. Make the argument
pointer to const for code safety and readability.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240216144027.185959-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/rockchip-iommu.c')
-rw-r--r-- | drivers/iommu/rockchip-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index 2685861c0a12..da79d9f4cf63 100644 --- a/drivers/iommu/rockchip-iommu.c +++ b/drivers/iommu/rockchip-iommu.c @@ -1140,7 +1140,7 @@ static void rk_iommu_release_device(struct device *dev) } static int rk_iommu_of_xlate(struct device *dev, - struct of_phandle_args *args) + const struct of_phandle_args *args) { struct platform_device *iommu_dev; struct rk_iommudata *data; |