Skip to content
Commit 587024b8 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: default avatarDave Olsthoorn <dave@bewaar.me>
Tested-by: default avatarShujun Wang <wsj20369@163.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e4ada4c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment