Bluetooth: controller: Rename use of params to param

Rename the use of params word with param.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-04-27 20:31:25 +05:30 committed by Carles Cufí
commit 236755198b
4 changed files with 13 additions and 13 deletions

View file

@ -61,12 +61,12 @@ static int init_reset(void);
static inline struct ll_adv_set *is_disabled_get(uint8_t handle); static inline struct ll_adv_set *is_disabled_get(uint8_t handle);
static void ticker_cb(uint32_t ticks_at_expire, uint32_t remainder, static void ticker_cb(uint32_t ticks_at_expire, uint32_t remainder,
uint16_t lazy, uint8_t force, void *param); uint16_t lazy, uint8_t force, void *param);
static void ticker_op_update_cb(uint32_t status, void *params); static void ticker_op_update_cb(uint32_t status, void *param);
#if defined(CONFIG_BT_PERIPHERAL) #if defined(CONFIG_BT_PERIPHERAL)
static void ticker_stop_cb(uint32_t ticks_at_expire, uint32_t remainder, static void ticker_stop_cb(uint32_t ticks_at_expire, uint32_t remainder,
uint16_t lazy, uint8_t force, void *param); uint16_t lazy, uint8_t force, void *param);
static void ticker_op_stop_cb(uint32_t status, void *params); static void ticker_op_stop_cb(uint32_t status, void *param);
static void disabled_cb(void *param); static void disabled_cb(void *param);
static void conn_release(struct ll_adv_set *adv); static void conn_release(struct ll_adv_set *adv);
#endif /* CONFIG_BT_PERIPHERAL */ #endif /* CONFIG_BT_PERIPHERAL */
@ -275,7 +275,7 @@ uint8_t ll_adv_params_set(uint16_t interval, uint8_t adv_type,
adv->is_created = 1; adv->is_created = 1;
#endif /* CONFIG_BT_CTLR_ADV_EXT */ #endif /* CONFIG_BT_CTLR_ADV_EXT */
/* remember params so that set adv/scan data and adv enable /* remember parameters so that set adv/scan data and adv enable
* interface can correctly update adv/scan data in the * interface can correctly update adv/scan data in the
* double buffer between caller and controller context. * double buffer between caller and controller context.
*/ */
@ -1836,7 +1836,7 @@ static void ticker_op_stop_cb(uint32_t status, void *param)
#if defined(CONFIG_BT_HCI_MESH_EXT) #if defined(CONFIG_BT_HCI_MESH_EXT)
/* FIXME: why is this here for Mesh commands? */ /* FIXME: why is this here for Mesh commands? */
if (params) { if (param) {
return; return;
} }
#endif /* CONFIG_BT_HCI_MESH_EXT */ #endif /* CONFIG_BT_HCI_MESH_EXT */

View file

@ -5182,7 +5182,7 @@ static inline int length_req_rsp_recv(struct ll_conn *conn, memq_link_t *link,
#endif /* CONFIG_BT_CTLR_PHY */ #endif /* CONFIG_BT_CTLR_PHY */
} }
/* prepare event params */ /* prepare event parameters */
lr->max_rx_octets = sys_cpu_to_le16(eff_rx_octets); lr->max_rx_octets = sys_cpu_to_le16(eff_rx_octets);
lr->max_tx_octets = sys_cpu_to_le16(eff_tx_octets); lr->max_tx_octets = sys_cpu_to_le16(eff_tx_octets);

View file

@ -54,8 +54,8 @@
#include "common/log.h" #include "common/log.h"
#include "hal/debug.h" #include "hal/debug.h"
static void ticker_op_stop_scan_cb(uint32_t status, void *params); static void ticker_op_stop_scan_cb(uint32_t status, void *param);
static void ticker_op_cb(uint32_t status, void *params); static void ticker_op_cb(uint32_t status, void *param);
static inline void conn_release(struct ll_scan_set *scan); static inline void conn_release(struct ll_scan_set *scan);
#if defined(CONFIG_BT_CTLR_ADV_EXT) #if defined(CONFIG_BT_CTLR_ADV_EXT)
@ -910,14 +910,14 @@ void ull_master_ticker_cb(uint32_t ticks_at_expire, uint32_t remainder, uint16_t
DEBUG_RADIO_PREPARE_M(1); DEBUG_RADIO_PREPARE_M(1);
} }
static void ticker_op_stop_scan_cb(uint32_t status, void *params) static void ticker_op_stop_scan_cb(uint32_t status, void *param)
{ {
/* TODO: */ /* TODO: */
} }
static void ticker_op_cb(uint32_t status, void *params) static void ticker_op_cb(uint32_t status, void *param)
{ {
ARG_UNUSED(params); ARG_UNUSED(param);
LL_ASSERT(status == TICKER_STATUS_SUCCESS); LL_ASSERT(status == TICKER_STATUS_SUCCESS);
} }

View file

@ -52,7 +52,7 @@
static void ticker_op_stop_adv_cb(uint32_t status, void *param); static void ticker_op_stop_adv_cb(uint32_t status, void *param);
static void ticker_op_cb(uint32_t status, void *param); static void ticker_op_cb(uint32_t status, void *param);
static void ticker_update_latency_cancel_op_cb(uint32_t ticker_status, static void ticker_update_latency_cancel_op_cb(uint32_t ticker_status,
void *params); void *param);
void ull_slave_setup(memq_link_t *link, struct node_rx_hdr *rx, void ull_slave_setup(memq_link_t *link, struct node_rx_hdr *rx,
struct node_rx_ftr *ftr, struct lll_conn *lll) struct node_rx_ftr *ftr, struct lll_conn *lll)
@ -576,9 +576,9 @@ static void ticker_op_cb(uint32_t status, void *param)
} }
static void ticker_update_latency_cancel_op_cb(uint32_t ticker_status, static void ticker_update_latency_cancel_op_cb(uint32_t ticker_status,
void *params) void *param)
{ {
struct ll_conn *conn = params; struct ll_conn *conn = param;
LL_ASSERT(ticker_status == TICKER_STATUS_SUCCESS); LL_ASSERT(ticker_status == TICKER_STATUS_SUCCESS);