diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-10-22 17:53:43 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-10-26 15:52:58 +0200 |
commit | 9f6abfcd67aae51374b4e8aa0b11f0ebd0d8562f (patch) | |
tree | 8ecb86974b41d863bc96629eaab3085b2156d154 /drivers/base/power | |
parent | 23f62d7ab25bd1a7dbbb89cfcd429df7735855af (diff) | |
download | linux-stable-9f6abfcd67aae51374b4e8aa0b11f0ebd0d8562f.tar.gz linux-stable-9f6abfcd67aae51374b4e8aa0b11f0ebd0d8562f.tar.bz2 linux-stable-9f6abfcd67aae51374b4e8aa0b11f0ebd0d8562f.zip |
PM: suspend: Use valid_state() consistently
Make valid_state() check if the ->enter callback is present in
suspend_ops (only PM_SUSPEND_TO_IDLE can be valid otherwise) and
make sleep_state_supported() call valid_state() consistently to
validate the states other than PM_SUSPEND_TO_IDLE.
While at it, clean up the comment in valid_state().
No expected functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
0 files changed, 0 insertions, 0 deletions