mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI: add device_driver and hepler functions
Add device_driver into acpi_driver for driver model. Add helper functions 'to_acpi_device' and 'to_acpi_driver' to get structure acpi_device/acpi_driver by device/device_driver. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
1d268b0a0f
commit
d43ec68e98
2 changed files with 3 additions and 5 deletions
|
|
@ -222,11 +222,6 @@ acpi_eject_store(struct acpi_device *device, const char *buf, size_t count)
|
|||
/* --------------------------------------------------------------------------
|
||||
ACPI Bus operations
|
||||
-------------------------------------------------------------------------- */
|
||||
static inline struct acpi_device * to_acpi_device(struct device * dev)
|
||||
{
|
||||
return container_of(dev, struct acpi_device, dev);
|
||||
}
|
||||
|
||||
static int root_suspend(struct acpi_device * acpi_dev, pm_message_t state)
|
||||
{
|
||||
struct acpi_device * dev, * next;
|
||||
|
|
|
|||
Loading…
Reference in a new issue