Linux bluetooth development
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 3/4] Remove use of read_device_id in input plugin
Date: Thu, 22 Sep 2011 18:51:51 +0300	[thread overview]
Message-ID: <1316706712-17611-3-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1316706712-17611-1-git-send-email-luiz.dentz@gmail.com>

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Make use of btd_device_get_vendor, btd_device_get_product and
btd_device_get_version intead.
---
 input/device.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/input/device.c b/input/device.c
index 70d0ba2..9ff7f20 100644
--- a/input/device.c
+++ b/input/device.c
@@ -596,8 +596,9 @@ static int hidp_add_connection(const struct input_device *idev,
 	extract_hid_record(rec, req);
 	sdp_record_free(rec);
 
-	read_device_id(src_addr, dst_addr, NULL,
-				&req->vendor, &req->product, &req->version);
+	req->vendor = btd_device_get_vendor(idev->device);
+	req->product = btd_device_get_product(idev->device);
+	req->version = btd_device_get_version(idev->device);
 
 	fake_hid = get_fake_hid(req->vendor, req->product);
 	if (fake_hid) {
-- 
1.7.6.2


  parent reply	other threads:[~2011-09-22 15:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 15:51 [PATCH BlueZ 1/4] Add Vendor, Product and Version properties to org.bluez.Device Luiz Augusto von Dentz
2011-09-22 15:51 ` [PATCH BlueZ 2/4] Print Vendor/Product/Version in hexadecimal Luiz Augusto von Dentz
2011-09-22 15:51 ` Luiz Augusto von Dentz [this message]
2011-09-22 15:51 ` [PATCH BlueZ 4/4] Remove use of read_device_id in wiimote plugin Luiz Augusto von Dentz
2011-10-02 22:45 ` [PATCH BlueZ 1/4] Add Vendor, Product and Version properties to org.bluez.Device Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1316706712-17611-3-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox