aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-22 15:55:32 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-22 15:55:32 -0500
commit46394fd017c0615982a3d29d45ced14bea9c526d (patch)
tree403b87b00dfdb0368519ed4c52ae8f0428569310 /include/acpi
parent3338db0057ed9f554050bd06863731c515d79672 (diff)
ACPI / hotplug: Move container-specific code out of the core
Move container-specific uevents from the core hotplug code to the container scan handler's .attach() and .detach() callbacks. This way the core will not have to special-case containers and the uevents will be guaranteed to happen every time a container is either scanned or trimmed as appropriate. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 2359c69f1680..3e4150b6d71a 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -91,16 +91,9 @@ struct acpi_device;
91 * ----------------- 91 * -----------------
92 */ 92 */
93 93
94enum acpi_hotplug_mode {
95 AHM_GENERIC = 0,
96 AHM_CONTAINER,
97 AHM_COUNT
98};
99
100struct acpi_hotplug_profile { 94struct acpi_hotplug_profile {
101 struct kobject kobj; 95 struct kobject kobj;
102 bool enabled:1; 96 bool enabled:1;
103 enum acpi_hotplug_mode mode;
104 int (*scan_dependent)(struct acpi_device *adev); 97 int (*scan_dependent)(struct acpi_device *adev);
105}; 98};
106 99