PM: sleep: stats: Use unsigned int for success and failure counters
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jan 2024 16:13:14 +0000 (17:13 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Feb 2024 13:26:27 +0000 (14:26 +0100)
commit2231f78d3e15e45abe534db1997bc6a2153dc01c
tree750cdb2b88eb46de1d99e252cc5b46720eae8301
parentb730bab0b9c4204d7dda3f5bc8adf4292497fc39
PM: sleep: stats: Use unsigned int for success and failure counters

Change the type of the "success" and "fail" fields in struct
suspend_stats to unsigned int, because they cannot be negative.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
include/linux/suspend.h
kernel/power/main.c