Skip to content
Permalink
Browse files

Bluetooth: GATT: Fix usage of uint16_t instead of u16_t

This fixes checkpatch complaning about usage of uint16_t.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
  • Loading branch information...
Vudentz authored and jhedberg committed Apr 17, 2019
1 parent a28b65e commit 0392ad0dc890e446079c2eabfd96954ad666efef
Showing with 5 additions and 5 deletions.
  1. +5 −5 subsys/bluetooth/host/gatt.c
@@ -123,10 +123,10 @@ static ssize_t read_ppcp(struct bt_conn *conn, const struct bt_gatt_attr *attr,
void *buf, u16_t len, u16_t offset)
{
struct __packed {
uint16_t min_int;
uint16_t max_int;
uint16_t latency;
uint16_t timeout;
u16_t min_int;
u16_t max_int;
u16_t latency;
u16_t timeout;
} ppcp;

ppcp.min_int = sys_cpu_to_le16(CONFIG_BT_PERIPHERAL_PREF_MIN_INT);
@@ -723,7 +723,7 @@ static bool update_range(u16_t *start, u16_t *end, u16_t new_start,
return true;
}

static void sc_indicate(struct gatt_sc *sc, uint16_t start, uint16_t end)
static void sc_indicate(struct gatt_sc *sc, u16_t start, u16_t end)
{
if (!atomic_test_and_set_bit(sc->flags, SC_RANGE_CHANGED)) {
sc->start = start;

0 comments on commit 0392ad0

Please sign in to comment.
You can’t perform that action at this time.