aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsxfobj.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.osdl.org>2006-12-22 21:46:56 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-22 21:46:56 -0500
commit18ed1c051317ac3a685120cead2adb192b802347 (patch)
treec08a9147119a6cb69114166c7107f6b0bba6e2ab /drivers/acpi/namespace/nsxfobj.c
parentdab6df63086762629936e8b89a5984bae39724f6 (diff)
parent36bcbec7ce21e2e8b3143b11a05747330abeca70 (diff)
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (68 commits) ACPI: replace kmalloc+memset with kzalloc ACPI: Add support for acpi_load_table/acpi_unload_table_id fbdev: update after backlight argument change ACPI: video: Add dev argument for backlight_device_register ACPI: Implement acpi_video_get_next_level() ACPI: Kconfig - depend on PM rather than selecting it ACPI: fix NULL check in drivers/acpi/osl.c ACPI: make drivers/acpi/ec.c:ec_ecdt static ACPI: prevent processor module from loading on failures ACPI: fix single linked list manipulation ACPI: ibm_acpi: allow clean removal ACPI: fix git automerge failure ACPI: ibm_acpi: respond to workqueue update ACPI: dock: add uevent to indicate change in device status ACPI: ec: Lindent once again ACPI: ec: Change #define to enums there possible. ACPI: ec: Style changes. ACPI: ec: Acquire Global Lock under EC mutex. ACPI: ec: Drop udelay() from poll mode. Loop by reading status field instead. ACPI: ec: Rename gpe_bit to gpe ...
Diffstat (limited to 'drivers/acpi/namespace/nsxfobj.c')
-rw-r--r--drivers/acpi/namespace/nsxfobj.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/drivers/acpi/namespace/nsxfobj.c b/drivers/acpi/namespace/nsxfobj.c
index a163e1d3708d..a18b1c223129 100644
--- a/drivers/acpi/namespace/nsxfobj.c
+++ b/drivers/acpi/namespace/nsxfobj.c
@@ -50,6 +50,50 @@ ACPI_MODULE_NAME("nsxfobj")
50 50
51/******************************************************************************* 51/*******************************************************************************
52 * 52 *
53 * FUNCTION: acpi_get_id
54 *
55 * PARAMETERS: Handle - Handle of object whose id is desired
56 * ret_id - Where the id will be placed
57 *
58 * RETURN: Status
59 *
60 * DESCRIPTION: This routine returns the owner id associated with a handle
61 *
62 ******************************************************************************/
63acpi_status acpi_get_id(acpi_handle handle, acpi_owner_id * ret_id)
64{
65 struct acpi_namespace_node *node;
66 acpi_status status;
67
68 /* Parameter Validation */
69
70 if (!ret_id) {
71 return (AE_BAD_PARAMETER);
72 }
73
74 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
75 if (ACPI_FAILURE(status)) {
76 return (status);
77 }
78
79 /* Convert and validate the handle */
80
81 node = acpi_ns_map_handle_to_node(handle);
82 if (!node) {
83 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
84 return (AE_BAD_PARAMETER);
85 }
86
87 *ret_id = node->owner_id;
88
89 status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
90 return (status);
91}
92
93ACPI_EXPORT_SYMBOL(acpi_get_id)
94
95/*******************************************************************************
96 *
53 * FUNCTION: acpi_get_type 97 * FUNCTION: acpi_get_type
54 * 98 *
55 * PARAMETERS: Handle - Handle of object whose type is desired 99 * PARAMETERS: Handle - Handle of object whose type is desired