From: Rafael J. Wysocki Date: Fri, 22 Nov 2013 20:56:06 +0000 (+0100) Subject: ACPI: Introduce acpi_set_device_status() X-Git-Tag: v3.14-rc1~107^2~11^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25db115b0bf72acfdf8a339fa8e37d8b895214d6;p=pandora-kernel.git 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 Tested-by: Mika Westerberg --- Reading git-diff-tree failed