acpi: use range helper function.