Subject: [PATCH] [acpi driver model] Add methods for ACPI device drivers - Similar to current set of methods (and Linux driver core methods). Signed-off-by: Patrick Mochel --- include/acpi/device.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) applies-to: 6812dab4f3c871410189fe7c73444679546f0bbd cdaa816afd769e5dec101728f1489596c61917e3 diff --git a/include/acpi/device.h b/include/acpi/device.h index 4780276..acafa46 100644 --- a/include/acpi/device.h +++ b/include/acpi/device.h @@ -16,6 +16,17 @@ struct acpi_device_driver { const char ** d_ids; const u32 d_num_ids; + + int (*d_add) (struct acpi_dev * ad); + int (*d_remove) (struct acpi_dev * ad); + + int (*d_start) (struct acpi_dev * ad); + int (*d_stop) (struct acpi_dev * ad); + + void (*d_shutdown) (struct acpi_dev * ad); + int (*d_suspend) (struct acpi_dev * ad, u32 state); + int (*d_resume) (struct acpi_dev * ad); + struct device_driver d_drv; }; --- 0.99.9.GIT