I am going through the platform drivers for power management operations. The platform drivers are represented using struct platform_driver.
This structure has functions like suspend() and resume() and the power management functions are present under
struct platform_driver->struct device_driver->const struct dev_pm_ops
I have the following queries related to this:
How are the suspend()/resume() present in struct platform_driver different from suspend()/resume() functions present in const struct dev_pm_ops.
How are the power management functions present in const struct dev_pm_ops gets called.
Is there any good tutorial available for understanding the platform drivers.