Bluetooth: CSIS: Remove conn from bt_csis_client_lock_changed_cb

The connection pointer can be inferred based on the
set pointer, by using e.g. CONTAINER_OF.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-11-23 14:51:13 +01:00 committed by Anas Nashif
commit 061fb633a5
3 changed files with 3 additions and 6 deletions

View file

@ -242,14 +242,12 @@ typedef void (*bt_csis_client_lock_set_cb)(int err);
/**
* @brief Callback when the lock value on a set of a connected device changes.
*
* @param conn Connection of the CSIS server.
* @param set The set that was changed.
* @param locked Whether the lock is locked or release.
*
* @return int Return 0 on success, or an errno value on error.
*/
typedef void (*bt_csis_client_lock_changed_cb)(struct bt_conn *conn,
struct bt_csis_client_set *set,
typedef void (*bt_csis_client_lock_changed_cb)(struct bt_csis_client_set *set,
bool locked);
/**