Blame SOURCES/0001-input-Add-helper-function-to-request-disconnect.patch

19062e
From c70bf65af6e301f18063491b22112300c0fb9b89 Mon Sep 17 00:00:00 2001
19062e
From: Bastien Nocera <hadess@hadess.net>
19062e
Date: Sun, 17 Jun 2012 01:25:46 +0200
19062e
Subject: [PATCH 1/3] input: Add helper function to request disconnect
19062e
19062e
---
19062e
 input/device.c |    7 +++++++
19062e
 input/device.h |    1 +
19062e
 2 files changed, 8 insertions(+)
19062e
19062e
diff --git a/input/device.c b/input/device.c
19062e
index 0e3f4a9..8fdd4e0 100644
19062e
--- a/input/device.c
19062e
+++ b/input/device.c
19062e
@@ -1306,3 +1306,10 @@ int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst)
19062e
 
19062e
 	return 0;
19062e
 }
19062e
+
19062e
+void input_device_request_disconnect(struct fake_input *fake)
19062e
+{
19062e
+	if (fake == NULL || fake->idev == NULL)
19062e
+		return;
19062e
+	device_request_disconnect(fake->idev->device, NULL);
19062e
+}
19062e
diff --git a/input/device.h b/input/device.h
19062e
index 509a353..ff52967 100644
19062e
--- a/input/device.h
19062e
+++ b/input/device.h
19062e
@@ -49,3 +49,4 @@ int input_device_unregister(const char *path, const char *uuid);
19062e
 int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
19062e
 							GIOChannel *io);
19062e
 int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
19062e
+void input_device_request_disconnect(struct fake_input *fake);
19062e
-- 
19062e
1.7.10
19062e