Subject: [PATCH] [acpi driver model] Add proc interface field to struct acpi_device_driver Signed-off-by: Patrick Mochel --- include/acpi/driver.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) applies-to: 673f9ce088416b3fc57bf13e0c09628d3f253bb1 63309165b6ead11dc88f6b06cfb8cfb88d4eff23 diff --git a/include/acpi/driver.h b/include/acpi/driver.h index 5bffb20..76be8f7 100644 --- a/include/acpi/driver.h +++ b/include/acpi/driver.h @@ -4,6 +4,7 @@ #include #include +#include struct acpi_device_driver { @@ -11,6 +12,7 @@ struct acpi_device_driver { const u32 d_num_ids; struct acpi_device_event * d_event; + struct acpi_driver_proc * d_proc; int (*d_add) (struct acpi_dev * ad); int (*d_remove) (struct acpi_dev * ad); @@ -68,7 +70,8 @@ static int __name##_resume(struct acpi_d #define __decl_externs(__name) \ -acpi_device_event_extern(__name); +acpi_device_event_extern(__name); \ +acpi_driver_proc_extern(__name); #define __decl_acpi_ids(__name, ...) \ static const char * __name##_ids[] = { __VA_ARGS__ } @@ -79,6 +82,7 @@ static struct acpi_device_driver __name# .d_num_ids = ARRAY_SIZE(__name##_ids), \ \ .d_event = acpi_device_event_ref(__name),\ + .d_proc = acpi_driver_proc_ref(__name), \ \ .d_add = __name##_add, \ .d_remove = __name##_remove, \ --- 0.99.9.GIT