Bluetooth: Mesh: Make element as rodata

the reason is that the Mesh Profile clearly stipulates that Mesh nodes
cannot change their own element definitions.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2023-11-17 09:36:34 +08:00 committed by Carles Cufí
commit 5f1c2f199b
29 changed files with 130 additions and 126 deletions

View file

@ -384,7 +384,7 @@ static int health_pub_update(const struct bt_mesh_model *mod)
return 0;
}
int bt_mesh_health_srv_fault_update(struct bt_mesh_elem *elem)
int bt_mesh_health_srv_fault_update(const struct bt_mesh_elem *elem)
{
const struct bt_mesh_model *mod;