ACPI: sparse fix, replace macro with static function