iommu/mediatek: Use a struct as the platform data
authorYong Wu <yong.wu@mediatek.com>
Sat, 24 Aug 2019 03:01:47 +0000 (11:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Aug 2019 13:57:26 +0000 (15:57 +0200)
commitcecdce9d7eed33ce24da8dd4a2151b68d5c17865
tree20d8644c6b4006151e55aad9526cc579939bcb0a
parent29746d012588f1de8517fc6921683c3844120989
iommu/mediatek: Use a struct as the platform data

Use a struct as the platform special data instead of the enumeration.
This is a prepare patch for adding mt8183 iommu support.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu.h