summaryrefslogtreecommitdiff
path: root/profiles/input
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:37 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 22:08:20 +0200
commit91744cb56f13be246a8614800aea3065b46181d3 (patch)
treedd98768c89dbad773dd3dd15f6e9d2f77c6e3437 /profiles/input
parent3f03ab5766de008f008fdd7cfb8679849accc51f (diff)
downloadbluez-91744cb56f13be246a8614800aea3065b46181d3.tar.gz
Replace att_get_u16() by get_le16()
Diffstat (limited to 'profiles/input')
-rw-r--r--profiles/input/hog.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index fd72e360c..25985ecb1 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -47,6 +47,7 @@
#include "src/device.h"
#include "src/profile.h"
#include "src/service.h"
+#include "src/shared/util.h"
#include "src/plugin.h"
@@ -234,8 +235,8 @@ static void discover_descriptor_cb(guint8 status, const guint8 *pdu,
uint8_t *value;
value = list->data[i];
- handle = att_get_u16(value);
- uuid16 = att_get_u16(&value[2]);
+ handle = get_le16(value);
+ uuid16 = get_le16(&value[2]);
switch (uuid16) {
case GATT_CLIENT_CHARAC_CFG_UUID:
@@ -336,7 +337,7 @@ static void external_report_reference_cb(guint8 status, const guint8 *pdu,
return;
}
- uuid16 = att_get_u16(&pdu[1]);
+ uuid16 = get_le16(&pdu[1]);
DBG("External report reference read, external report characteristic "
"UUID: 0x%04x", uuid16);
bt_uuid16_create(&uuid, uuid16);
@@ -431,7 +432,7 @@ static void info_read_cb(guint8 status, const guint8 *pdu, guint16 plen,
return;
}
- hogdev->bcdhid = att_get_u16(&value[0]);
+ hogdev->bcdhid = get_le16(&value[0]);
hogdev->bcountrycode = value[2];
hogdev->flags = value[3];