• Rafael J. Wysocki's avatar
    PM: Provide generic subsystem-level callbacks · d690b2cd
    Rafael J. Wysocki authored
    There are subsystems whose power management callbacks only need to
    invoke the callbacks provided by device drivers.  Still, their system
    sleep PM callbacks should play well with the runtime PM callbacks,
    so that devices suspended at run time can be left in that state for
    a system sleep transition.
    
    Provide a set of generic PM callbacks for such subsystems and
    define convenience macros for populating dev_pm_ops structures.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    d690b2cd
generic_ops.c 5.64 KB