Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Zhen Lei and committed by
Rafael J. Wysocki
01c3d593 4ac7a817

+1 -6
+1 -6
drivers/acpi/osl.c
··· 1487 1487 int acpi_check_region(resource_size_t start, resource_size_t n, 1488 1488 const char *name) 1489 1489 { 1490 - struct resource res = { 1491 - .start = start, 1492 - .end = start + n - 1, 1493 - .name = name, 1494 - .flags = IORESOURCE_IO, 1495 - }; 1490 + struct resource res = DEFINE_RES_IO_NAMED(start, n, name); 1496 1491 1497 1492 return acpi_check_resource_conflict(&res); 1498 1493 }