PM: Rename dev_pm_info.in_suspend to is_prepared
This patch (as1473) renames the "in_suspend" field in struct dev_pm_info to "is_prepared", in preparation for an upcoming change. The new name is more descriptive of what the field really means. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Cc: stable@kernel.org
This commit is contained in:
committed by
Rafael J. Wysocki
parent
78420884e6
commit
f76b168b6f
@@ -654,13 +654,13 @@ static inline int device_is_registered(struct device *dev)
|
||||
|
||||
static inline void device_enable_async_suspend(struct device *dev)
|
||||
{
|
||||
if (!dev->power.in_suspend)
|
||||
if (!dev->power.is_prepared)
|
||||
dev->power.async_suspend = true;
|
||||
}
|
||||
|
||||
static inline void device_disable_async_suspend(struct device *dev)
|
||||
{
|
||||
if (!dev->power.in_suspend)
|
||||
if (!dev->power.is_prepared)
|
||||
dev->power.async_suspend = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user