summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorRafael J. Wysocki2014-02-21 01:08:51 +0100
committerRafael J. Wysocki2014-02-21 01:08:51 +0100
commit59b42fa01fe2d84f3c3f28ee6f25510820ace35b (patch)
treebe9e3852133481c14fcb830e79aa6802869a6d98 /include/acpi/acpi_bus.h
parentACPI / hotplug / PCI: Do not clear event callback pointer for docks (diff)
downloadkernel-qcow2-linux-59b42fa01fe2d84f3c3f28ee6f25510820ace35b.tar.gz
kernel-qcow2-linux-59b42fa01fe2d84f3c3f28ee6f25510820ace35b.tar.xz
kernel-qcow2-linux-59b42fa01fe2d84f3c3f28ee6f25510820ace35b.zip
ACPI / hotplug: Add .fixup() callback to struct acpi_hotplug_context
In order for the ACPI dock station code to be able to use the callbacks pointed to by the ACPI device objects' hotplug contexts add a .fixup() callback pointer to struct acpi_hotplug_context. That callback will be useful to handle PCI devices located in dock stations. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 8fb297b5307c..007fe99e29f5 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -144,6 +144,7 @@ struct acpi_scan_handler {
struct acpi_hotplug_context {
struct acpi_device *self;
int (*event)(struct acpi_device *, u32);
+ void (*fixup)(struct acpi_device *);
};
/*
@@ -366,10 +367,12 @@ static inline void acpi_set_device_status(struct acpi_device *adev, u32 sta)
static inline void acpi_set_hp_context(struct acpi_device *adev,
struct acpi_hotplug_context *hp,
- int (*event)(struct acpi_device *, u32))
+ int (*event)(struct acpi_device *, u32),
+ void (*fixup)(struct acpi_device *))
{
hp->self = adev;
hp->event = event;
+ hp->fixup = fixup;
adev->hp = hp;
}