FW: [PATCH 2/3] iommu: mtk: constify iommu_ops
Yong Wu
yong.wu at mediatek.com
Mon Aug 28 22:43:33 PDT 2017
> From: Linux-mediatek [mailto:linux-mediatek-bounces at lists.infradead.org] On Behalf Of Arvind Yadav
> Sent: Monday, August 28, 2017 8:12 PM
> To: m.szyprowski at samsung.com; joro at 8bytes.org; kgene at kernel.org; krzk at kernel.org; matthias.bgg at gmail.com; gerald.schaefer at de.ibm.com
> Cc: iommu at lists.linux-foundation.org; linux-mediatek at lists.infradead.org; linux-kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org
> Subject: [PATCH 2/3] iommu: mtk: constify iommu_ops
>
> iommu_ops are not supposed to change at runtime.
> Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
> const iommu_ops provided by <linux/iommu.h>. So mark the non-const
> structs as const.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs at gmail.com>
Thanks.
Reviewed-by: Yong Wu <yong.wu at mediatek.com>
nit, the title should be: iommu/mediatek:xxx
Also, the file mtk_iommu.c may need rebase on[1].
[1]https://lists.linuxfoundation.org/pipermail/iommu/2017-August/023847.html
More information about the Linux-mediatek
mailing list