summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommu.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-02-16 15:40:26 +0100
committerJoerg Roedel <jroedel@suse.de>2024-03-01 13:47:01 +0100
commit5896e6e39b86c1d820b3ccf5caea9aef40c2eacd (patch)
tree6dc15d6683801c5a4ca59a7c5c6f310bdfd45cfc /drivers/iommu/iommu.c
parentb42a905b6aad40c092cf17f4b295a4c389bc7206 (diff)
downloadlwn-5896e6e39b86c1d820b3ccf5caea9aef40c2eacd.tar.gz
lwn-5896e6e39b86c1d820b3ccf5caea9aef40c2eacd.zip
iommu: constify fwnode in iommu_ops_from_fwnode()
Make pointer to fwnode_handle a pointer to const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240216144027.185959-3-krzysztof.kozlowski@linaro.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r--drivers/iommu/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index b0a41f598dcf..28b18ed83273 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -2774,7 +2774,7 @@ bool iommu_default_passthrough(void)
}
EXPORT_SYMBOL_GPL(iommu_default_passthrough);
-const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode)
+const struct iommu_ops *iommu_ops_from_fwnode(const struct fwnode_handle *fwnode)
{
const struct iommu_ops *ops = NULL;
struct iommu_device *iommu;