[PATCH 6/9] iommu/mediatek: Use helper functions to access dev->iommu_fwspec

Yong Wu yong.wu at mediatek.com
Wed Dec 12 13:40:20 UTC 2018


On Tue, 2018-12-11 at 13:19 +0100, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel at suse.de>
> 
> Use the new helpers dev_iommu_fwspec_get()/set() to access
> the dev->iommu_fwspec pointer. This makes it easier to move
> that pointer later into another struct.
> 
> Cc: Matthias Brugger <matthias.bgg at gmail.com>
> Signed-off-by: Joerg Roedel <jroedel at suse.de>
> ---
>  drivers/iommu/mtk_iommu.c    | 21 ++++++++++++---------
>  drivers/iommu/mtk_iommu_v1.c | 28 ++++++++++++++++------------
>  2 files changed, 28 insertions(+), 21 deletions(-)

Tested-by: Yong Wu <yong.wu at mediatek.com>




More information about the iommu mailing list