Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
[linux-flexiantxendom0-3.2.10.git] / drivers / acpi / ec.c
index 3268dcf..7edaccc 100644 (file)
@@ -445,6 +445,16 @@ int ec_transaction(u8 command,
 
 EXPORT_SYMBOL(ec_transaction);
 
+/* Get the handle to the EC device */
+acpi_handle ec_get_handle(void)
+{
+       if (!first_ec)
+               return NULL;
+       return first_ec->handle;
+}
+
+EXPORT_SYMBOL(ec_get_handle);
+
 void acpi_ec_block_transactions(void)
 {
        struct acpi_ec *ec = first_ec;