summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp/core.c
diff options
context:
space:
mode:
authorDavid Herrmann2013-04-06 20:28:43 +0200
committerGustavo Padovan2013-04-17 07:56:59 +0200
commit3764eaa922c78037ad9bed06be5c8b8a5c83b37d (patch)
tree71f7d91e8344af5e6efadd676180191a00c36c2b /net/bluetooth/hidp/core.c
parentBluetooth: allow constant arguments for bacmp()/bacpy() (diff)
downloadkernel-qcow2-linux-3764eaa922c78037ad9bed06be5c8b8a5c83b37d.tar.gz
kernel-qcow2-linux-3764eaa922c78037ad9bed06be5c8b8a5c83b37d.tar.xz
kernel-qcow2-linux-3764eaa922c78037ad9bed06be5c8b8a5c83b37d.zip
Bluetooth: hidp: move hidp_schedule() to core.c
There is no reason to keep this helper in the header file. No other file depends on it so move it into hidp/core.c where it belongs. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hidp/core.c')
-rw-r--r--net/bluetooth/hidp/core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index e01a9246c14d..cef1021d5403 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -59,6 +59,15 @@ static unsigned char hidp_keycode[256] = {
static unsigned char hidp_mkeyspat[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 };
+static inline void hidp_schedule(struct hidp_session *session)
+{
+ struct sock *ctrl_sk = session->ctrl_sock->sk;
+ struct sock *intr_sk = session->intr_sock->sk;
+
+ wake_up_interruptible(sk_sleep(ctrl_sk));
+ wake_up_interruptible(sk_sleep(intr_sk));
+}
+
static struct hidp_session *__hidp_get_session(bdaddr_t *bdaddr)
{
struct hidp_session *session;