commit | 25db115b0bf72acfdf8a339fa8e37d8b895214d6 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Fri Nov 22 21:56:06 2013 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Fri Nov 22 21:56:06 2013 +0100 |
tree | 57e73fb5457a5ecb591a8f750583274006afe763 | |
parent | f4b734c35e98c343cd99824153de09e48867b97e [diff] |
ACPI: Introduce acpi_set_device_status() Introduce a static inline function for setting the status field of struct acpi_device on the basis of a supplied u32 number, acpi_set_device_status(), and use it instead of the horrible horrible STRUCT_TO_INT() macro wherever applicable. Having done that, drop STRUCT_TO_INT() (and pretend that it has never existed). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>