ACPI: scan: Introduce typedef:s for struct acpi_hotplug_context members
[linux-2.6-block.git] / include / acpi / acpi_bus.h
index a6ced88a08f35d63dc36d45eb88b7af485cb5090..6f8cc4cc61be14d977226648672ffa1efb66d33a 100644 (file)
@@ -144,11 +144,15 @@ struct acpi_scan_handler {
  * --------------------
  */
 
+typedef int (*acpi_hp_notify) (struct acpi_device *, u32);
+typedef void (*acpi_hp_uevent) (struct acpi_device *, u32);
+typedef void (*acpi_hp_fixup) (struct acpi_device *);
+
 struct acpi_hotplug_context {
        struct acpi_device *self;
-       int (*notify)(struct acpi_device *, u32);
-       void (*uevent)(struct acpi_device *, u32);
-       void (*fixup)(struct acpi_device *);
+       acpi_hp_notify notify;
+       acpi_hp_uevent uevent;
+       acpi_hp_fixup fixup;
 };
 
 /*
@@ -583,8 +587,7 @@ static inline void acpi_set_hp_context(struct acpi_device *adev,
 
 void acpi_initialize_hp_context(struct acpi_device *adev,
                                struct acpi_hotplug_context *hp,
-                               int (*notify)(struct acpi_device *, u32),
-                               void (*uevent)(struct acpi_device *, u32));
+                               acpi_hp_notify notify, acpi_hp_uevent uevent);
 
 /* acpi_device.dev.bus == &acpi_bus_type */
 extern const struct bus_type acpi_bus_type;