Merge tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / ec.c
index 3268dcfbaa9b3d92b7fd36871deb71e202d56373..7edaccce66402b75b1b32228bfc7cebc000066c4 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;