Re: [Patch v2 06/10] iommu: using dev_get_drvdata directly

2019-07-04 Thread Joerg Roedel
On Thu, Jul 04, 2019 at 10:36:20AM +0800, Fuqian Huang wrote: > #define to_iommu(dev) > \ > - ((struct omap_iommu *)platform_get_drvdata(to_platform_device(dev))) > + ((struct omap_iommu *)dev_get_drvdata(dev)) A similar change is

[Patch v2 06/10] iommu: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message