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
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