iommu/vt-d: Introduce helper functions to make code symmetric for readability
authorJiang Liu <jiang.liu@linux.intel.com>
Fri, 11 Jul 2014 06:19:28 +0000 (14:19 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 23 Jul 2014 14:04:46 +0000 (16:04 +0200)
commitfb170fb4c548c6d9fe9f71db946e216abb5c6641
treece30c43160df179131588774d14a5ea9724b758d
parentab8dfe251571e4a04d367e47e5be93976a77c610
iommu/vt-d: Introduce helper functions to make code symmetric for readability

Introduce domain_attach_iommu()/domain_detach_iommu() and refine
iommu_attach_domain()/iommu_detach_domain() to make code symmetric
and improve readability.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c