summaryrefslogtreecommitdiffstats
path: root/drivers/base/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-10-22 17:53:43 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-10-26 15:52:58 +0200
commit9f6abfcd67aae51374b4e8aa0b11f0ebd0d8562f (patch)
tree8ecb86974b41d863bc96629eaab3085b2156d154 /drivers/base/power
parent23f62d7ab25bd1a7dbbb89cfcd429df7735855af (diff)
downloadlinux-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