From d4bb288f7b579fa688ca0565a9abafdf664e2a97 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 4 Feb 2016 16:43:16 +0200 Subject: [PATCH] drivers/nble: Style fixes Fixes some styles and removes p_buf from debug log. Change-Id: I861c2c250d8478353f8272e9c59c06f9fc211036 Signed-off-by: Andrei Emeltchenko --- drivers/nble/gatt.c | 4 ++-- drivers/nble/uart.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/nble/gatt.c b/drivers/nble/gatt.c index 90adcd57002..2cd7d3abb37 100644 --- a/drivers/nble/gatt.c +++ b/drivers/nble/gatt.c @@ -34,8 +34,8 @@ static uint8_t svc_count; /** * Copy a UUID in a buffer using the smallest memory length - * @param p_buf Pointer to the memory where the UUID shall be copied - * @param p_uuid Pointer to the UUID to copy + * @param buf Pointer to the memory where the UUID shall be copied + * @param uuid Pointer to the UUID to copy * @return The length required to store the UUID in the memory */ static uint8_t bt_gatt_uuid_memcpy(uint8_t *buf, const struct bt_uuid *uuid) diff --git a/drivers/nble/uart.c b/drivers/nble/uart.c index b90304cdc76..b07d0a889dc 100644 --- a/drivers/nble/uart.c +++ b/drivers/nble/uart.c @@ -93,12 +93,12 @@ static void poll_out(const void *buf, size_t length) } } -void rpc_transmit_cb(uint8_t *p_buf, uint16_t length) +void rpc_transmit_cb(uint8_t *data, uint16_t length) { - struct net_buf *buf = CONTAINER_OF(p_buf, struct net_buf, __buf); + struct net_buf *buf = CONTAINER_OF(data, struct net_buf, __buf); struct ipc_uart_header hdr; - BT_DBG("p_buf %p length %u", p_buf, length); + BT_DBG("buf %p length %u", data, length); hdr.len = length; hdr.channel = 0;