diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-08-12 12:03:17 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-08-13 15:04:03 -0700 |
commit | 2614f2b7324bb9a3b0fa727a2ce2d86340a32a47 (patch) | |
tree | cfb6bf1022f0d8774561c13bfd6a50b837b44f2d /mesh/model.c | |
parent | 8ea7d5842817bc339f482be3a53cadb7df7aa76d (diff) | |
download | bluez-2614f2b7324bb9a3b0fa727a2ce2d86340a32a47.tar.gz |
mesh: Make mesh config model binding API consistent
This changes the order of function arguments in
mesh_config_model_binding_add() and mesh_config_model_binding_del()
to make them consistent with the rest of mesh_config_model... APIs
Diffstat (limited to 'mesh/model.c')
-rw-r--r-- | mesh/model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/model.c b/mesh/model.c index 136edb194..961391f13 100644 --- a/mesh/model.c +++ b/mesh/model.c @@ -659,7 +659,7 @@ static int update_binding(struct mesh_node *node, uint16_t addr, uint32_t id, model_unbind_idx(node, ele_idx, mod, app_idx); if (!mesh_config_model_binding_del(node_config_get(node), - addr, vendor, id, + addr, id, vendor, app_idx)) return MESH_STATUS_STORAGE_FAIL; @@ -671,7 +671,7 @@ static int update_binding(struct mesh_node *node, uint16_t addr, uint32_t id, return MESH_STATUS_INSUFF_RESOURCES; if (!mesh_config_model_binding_add(node_config_get(node), addr, - vendor, id, app_idx)) + id, vendor, app_idx)) return MESH_STATUS_STORAGE_FAIL; model_bind_idx(node, ele_idx, mod, app_idx); |