From 8750b7c6f76ceed37fb8857aa1b83145ef968bd2 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Fri, 26 Mar 2021 11:01:30 +0100 Subject: [PATCH] Bluetooth: audio: Changed VOCS to use ENOTSUP instead of EOPNOTSUPP Changed to use ENOTSUP to be more consistent with the rest of the bluetooth subsystem. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/vocs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subsys/bluetooth/audio/vocs.c b/subsys/bluetooth/audio/vocs.c index 590bbb26d20..2bbc9bc0a2b 100644 --- a/subsys/bluetooth/audio/vocs.c +++ b/subsys/bluetooth/audio/vocs.c @@ -361,7 +361,7 @@ int bt_vocs_state_get(struct bt_conn *conn, struct bt_vocs *inst) return 0; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_location_get(struct bt_conn *conn, struct bt_vocs *inst) @@ -380,7 +380,7 @@ int bt_vocs_location_get(struct bt_conn *conn, struct bt_vocs *inst) return 0; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_location_set(struct bt_conn *conn, struct bt_vocs *inst, uint32_t location) @@ -403,7 +403,7 @@ int bt_vocs_location_set(struct bt_conn *conn, struct bt_vocs *inst, uint32_t lo return err > 0 ? 0 : err; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_state_set(struct bt_conn *conn, struct bt_vocs *inst, int16_t offset) @@ -431,7 +431,7 @@ int bt_vocs_state_set(struct bt_conn *conn, struct bt_vocs *inst, int16_t offset return err > 0 ? 0 : err; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_description_get(struct bt_conn *conn, struct bt_vocs *inst) @@ -450,7 +450,7 @@ int bt_vocs_description_get(struct bt_conn *conn, struct bt_vocs *inst) return 0; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_description_set(struct bt_conn *conn, struct bt_vocs *inst, const char *description) @@ -477,7 +477,7 @@ int bt_vocs_description_set(struct bt_conn *conn, struct bt_vocs *inst, const ch return err > 0 ? 0 : err; } - return -EOPNOTSUPP; + return -ENOTSUP; } int bt_vocs_cb_register(struct bt_vocs *inst, struct bt_vocs_cb *cb)