Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369551
b: refs/heads/master
c: af87b3d
h: refs/heads/master
i:
  369549: 7525135
  369547: 42453ad
  369543: 7b13313
  369535: c1ad7d9
v: v3
  • Loading branch information
David Herrmann authored and Gustavo Padovan committed Apr 17, 2013
1 parent 411f0e3 commit c74e543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41edc0c034160408feaa78c9a50cc5e91a5928c7
refs/heads/master: af87b3d0151e39f23e795d327e25019be687d8c0
24 changes: 5 additions & 19 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ static int hidp_send_intr_message(struct hidp_session *session,
&session->intr_transmit, hdr, data, size);
}

static int hidp_queue_event(struct hidp_session *session, struct input_dev *dev,
unsigned int type, unsigned int code, int value)
static int hidp_input_event(struct input_dev *dev, unsigned int type,
unsigned int code, int value)
{
struct hidp_session *session = input_get_drvdata(dev);
unsigned char newleds;
unsigned char hdr, data[2];

BT_DBG("session %p type %d code %d value %d", session, type, code, value);
BT_DBG("session %p type %d code %d value %d",
session, type, code, value);

if (type != EV_LED)
return -1;
Expand All @@ -172,21 +174,6 @@ static int hidp_queue_event(struct hidp_session *session, struct input_dev *dev,
return hidp_send_intr_message(session, hdr, data, 2);
}

static int hidp_hidinput_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
{
struct hid_device *hid = input_get_drvdata(dev);
struct hidp_session *session = hid->driver_data;

return hidp_queue_event(session, dev, type, code, value);
}

static int hidp_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
{
struct hidp_session *session = input_get_drvdata(dev);

return hidp_queue_event(session, dev, type, code, value);
}

static void hidp_input_report(struct hidp_session *session, struct sk_buff *skb)
{
struct input_dev *dev = session->input;
Expand Down Expand Up @@ -732,7 +719,6 @@ static struct hid_ll_driver hidp_hid_driver = {
.stop = hidp_stop,
.open = hidp_open,
.close = hidp_close,
.hidinput_input_event = hidp_hidinput_event,
};

/* This function sets up the hid device. It does not add it
Expand Down

0 comments on commit c74e543

Please sign in to comment.