Bluetooth: Audio: Make codec_cap const
There is no reason why the capabilities should be modified by the stack after registration, nor any reason why a the unicast client application needs to modify the reported remote capabilities, so all have been marked as const. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
aa990ae6dc
commit
53502cb417
15 changed files with 15 additions and 15 deletions
|
@ -74,7 +74,7 @@ struct pac_records_build_data {
|
|||
static bool build_pac_records(const struct bt_pacs_cap *cap, void *user_data)
|
||||
{
|
||||
struct pac_records_build_data *data = user_data;
|
||||
struct bt_audio_codec_cap *codec_cap = cap->codec_cap;
|
||||
const struct bt_audio_codec_cap *codec_cap = cap->codec_cap;
|
||||
struct net_buf_simple *buf = data->buf;
|
||||
struct net_buf_simple_state state;
|
||||
struct bt_pac_codec *pac_codec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue