Subject: [PATCH] [acpi driver model] Add per-driver sysfs structure to struct acpi_device_driver Signed-off-by: Patrick Mochel --- include/acpi/driver.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) applies-to: 40d8da54f379a85e28607378e1d0b2efc6a8fe05 d8d5ef8a52ef4c3d12d107ee276da0a8f38ddb0f diff --git a/include/acpi/driver.h b/include/acpi/driver.h index 76be8f7..16002ed 100644 --- a/include/acpi/driver.h +++ b/include/acpi/driver.h @@ -5,6 +5,7 @@ #include #include #include +#include struct acpi_device_driver { @@ -13,6 +14,7 @@ struct acpi_device_driver { struct acpi_device_event * d_event; struct acpi_driver_proc * d_proc; + struct acpi_driver_sysfs * d_sysfs; int (*d_add) (struct acpi_dev * ad); int (*d_remove) (struct acpi_dev * ad); @@ -71,7 +73,8 @@ static int __name##_resume(struct acpi_d #define __decl_externs(__name) \ acpi_device_event_extern(__name); \ -acpi_driver_proc_extern(__name); +acpi_driver_proc_extern(__name); \ +acpi_driver_sysfs_extern(__name); #define __decl_acpi_ids(__name, ...) \ static const char * __name##_ids[] = { __VA_ARGS__ } @@ -83,6 +86,7 @@ static struct acpi_device_driver __name# \ .d_event = acpi_device_event_ref(__name),\ .d_proc = acpi_driver_proc_ref(__name), \ + .d_sysfs = acpi_driver_sysfs_ref(__name),\ \ .d_add = __name##_add, \ .d_remove = __name##_remove, \ --- 0.99.9.GIT