projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa98b39
)
ACPI: bus: Export acpi_dev_for_each_child() to modules
author
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 13 Jun 2022 18:26:03 +0000
(20:26 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 20 Jun 2022 18:33:10 +0000
(20:33 +0200)
Some pieces of modular code can benefit from using
acpi_dev_for_each_child(), so export it to modules.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/acpi/bus.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/bus.c
b/drivers/acpi/bus.c
index
86fa61a
..
7027ff2
100644
(file)
--- a/
drivers/acpi/bus.c
+++ b/
drivers/acpi/bus.c
@@
-1102,6
+1102,7
@@
static int acpi_dev_for_one_check(struct device *dev, void *context)
return adwc->fn(to_acpi_device(dev), adwc->data);
}
+EXPORT_SYMBOL_GPL(acpi_dev_for_each_child);
int acpi_dev_for_each_child(struct acpi_device *adev,
int (*fn)(struct acpi_device *, void *), void *data)