ACPI: Add acpi_bus_attach_private_data() to attach data to ACPI handle
authorLan Tianyu <tianyu.lan@intel.com>
Tue, 20 May 2014 12:59:21 +0000 (20:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 May 2014 23:19:54 +0000 (01:19 +0200)
commit72013795a73f8536d3346fa90379c987bcad0cc8
tree1ca55d541d6569cdf6e824ecea1edb9498c6abf3
parentc7208164e66f63e3ec1759b98087849286410741
ACPI: Add acpi_bus_attach_private_data() to attach data to ACPI handle

There is already acpi_bus_get_private_data() to get ACPI handle data
which is associated with acpi_bus_private_data_handler(). This patch
is to add acpi_bus_attach_private_data() to make a pair and facilitate
to attach and get data to/from ACPI handle.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
include/acpi/acpi_bus.h