diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-09-14 18:23:44 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-09-14 18:23:44 +0200 |
commit | fce6db565f747ca9ad560f7d8bff6a45522d905c (patch) | |
tree | f6210ab0d7bc1b33ea676711647d63dc367ed939 /input | |
parent | a90bb1223be9413d5ef76a18d16bbc0de757ceda (diff) |
Store source information from DID record
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/input/device.c b/input/device.c index 8391326e..388fe9e2 100644 --- a/input/device.c +++ b/input/device.c @@ -606,6 +606,7 @@ static int hidp_add_connection(const struct input_device *idev, struct fake_hid *fake_hid; struct fake_input *fake; sdp_record_t *rec; + uint16_t source; char src_addr[18], dst_addr[18]; int err; @@ -628,8 +629,8 @@ static int hidp_add_connection(const struct input_device *idev, extract_hid_record(rec, req); sdp_record_free(rec); - read_pnp(src_addr, dst_addr, &req->vendor, &req->product, - &req->version); + read_device_id(src_addr, dst_addr, &source, + &req->vendor, &req->product, &req->version); fake_hid = get_fake_hid(req->vendor, req->product); if (fake_hid) { |