]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Constify iommu_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 18 Oct 2018 11:13:38 +0000 (19:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 6 Nov 2018 15:40:29 +0000 (16:40 +0100)
commita60565ab2f553a3dd29a6ac145fb07237b33569e
treec8ddc04db9441e0c4e4239cd3c61b3baf62e60c1
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
iommu/mediatek: 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@gmail.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
(Change the title to iommu/mediatek: xx)
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu_v1.c