@@ -1085,24 +1085,26 @@ int __pm_runtime_resume(struct device *dev, int rpmflags)
1085
1085
EXPORT_SYMBOL_GPL (__pm_runtime_resume );
1086
1086
1087
1087
/**
1088
- * pm_runtime_get_if_active - Conditionally bump up the device's usage counter.
1088
+ * pm_runtime_get_if_active - Conditionally bump up device usage counter.
1089
1089
* @dev: Device to handle.
1090
+ * @ign_usage_count: Whether or not to look at the current usage counter value.
1090
1091
*
1091
- * Return -EINVAL if runtime PM is disabled for the device .
1092
+ * Return -EINVAL if runtime PM is disabled for @dev .
1092
1093
*
1093
- * Otherwise, if the device's runtime PM status is RPM_ACTIVE and either
1094
- * ign_usage_count is true or the device's usage_count is non-zero, increment
1095
- * the counter and return 1. Otherwise return 0 without changing the counter.
1094
+ * Otherwise, if the runtime PM status of @dev is %RPM_ACTIVE and either
1095
+ * @ign_usage_count is %true or the runtime PM usage counter of @dev is not
1096
+ * zero, increment the usage counter of @dev and return 1. Otherwise, return 0
1097
+ * without changing the usage counter.
1096
1098
*
1097
- * If ign_usage_count is true, the function can be used to prevent suspending
1098
- * the device when its runtime PM status is RPM_ACTIVE.
1099
+ * If @ ign_usage_count is % true, this function can be used to prevent suspending
1100
+ * the device when its runtime PM status is % RPM_ACTIVE.
1099
1101
*
1100
- * If ign_usage_count is false, the function can be used to prevent suspending
1101
- * the device when both its runtime PM status is RPM_ACTIVE and its usage_count
1102
- * is non- zero.
1102
+ * If @ ign_usage_count is % false, this function can be used to prevent
1103
+ * suspending the device when both its runtime PM status is % RPM_ACTIVE and its
1104
+ * runtime PM usage counter is not zero.
1103
1105
*
1104
- * The caller is resposible for putting the device's usage count when ther
1105
- * return value is greater than zero .
1106
+ * The caller is resposible for decrementing the runtime PM usage counter of
1107
+ * @dev after this function has returned a positive value for it .
1106
1108
*/
1107
1109
int pm_runtime_get_if_active (struct device * dev , bool ign_usage_count )
1108
1110
{
0 commit comments