diff options
author | Len Brown <len.brown@intel.com> | 2008-10-23 05:28:38 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-23 05:28:38 +0200 |
commit | 5f50ef453dcb05115fc98f244b8f10bfacd4b8b7 (patch) | |
tree | 1999a7e6d242198d48f0089c7995a50f339fa3e4 /include/acpi/acpi_bus.h | |
parent | Merge branch 'i7300_idle' into test (diff) | |
parent | asus-laptop: Fix the led behavior with value > 1 (diff) | |
download | linux-5f50ef453dcb05115fc98f244b8f10bfacd4b8b7.tar.xz linux-5f50ef453dcb05115fc98f244b8f10bfacd4b8b7.zip |
Merge branch 'misc' into test
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index f74f882609f8..c1b5556c985d 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -300,7 +300,11 @@ struct acpi_device { enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ }; -#define acpi_driver_data(d) ((d)->driver_data) +static inline void *acpi_driver_data(struct acpi_device *d) +{ + return 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) |