diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-05-24 17:24:16 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-05-31 13:59:01 +0200 |
commit | 587024b8210d4eeeab457323141c92e134cd3dbf (patch) | |
tree | f4ca32205758c9efa8ad7663248d59600b2a88f7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e4ada4c8de70b3a25fb954bc0d4705b4273778a5 (diff) |
ACPI: power: Use u8 as the power resource state data type
Use u8 as the data type for representing the state of an ACPI
power resource.
It is s not necessary to use int for that and because subsequent
changes are going to use ACPI_POWER_RESOURCE_STATE_UNKNOWN, it is
better to adjust the data type so that the "unknown" state is
represented by the "all ones" value.
While at it, clean up acpi_power_get_state() somewhat.
No intentional functional impact.
Tested-by: Dave Olsthoorn <dave@bewaar.me>
Tested-by: Shujun Wang <wsj20369@163.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions