|
@@ -136,6 +136,7 @@ struct acpi_driver {
|
|
|
atomic_t references;
|
|
|
char *ids; /* Supported Hardware IDs */
|
|
|
struct acpi_device_ops ops;
|
|
|
+ struct device_driver drv;
|
|
|
};
|
|
|
|
|
|
/*
|
|
@@ -301,6 +302,8 @@ struct acpi_device {
|
|
|
};
|
|
|
|
|
|
#define acpi_driver_data(d) ((d)->driver_data)
|
|
|
+#define to_acpi_device(d) container_of(d, struct acpi_device, dev)
|
|
|
+#define to_acpi_driver(d) container_of(d, struct acpi_driver, drv)
|
|
|
|
|
|
/*
|
|
|
* Events
|