This remove use of bdaddr_t in favour of using references to struct btd_adapter and struct btd_device. note: This patch triggers a bug introduced when a2dp was splitted into two btd_profile resulting in a2dp_unregister() is never called (so adapter ref is not dropped properly). This is not fixed in this patch set. Szymon Janc (16): a2dp: Remove bogus '\' at the end of line a2dp: Remove useless return a2dp: Remove not used macros definitions a2dp: Convert sink/source register to accept btd_adapter a2dp: Convert a2dp_unregister to accept btd_adapter media: Convert register/unregister to accept btd_adapter a2dp: Convert a2dp_add_sep to accept struct btd_adapter avdtp: Use refs to adapter and device instead of bdaddr_t a2dp: Use btd_adapter ref in a2dp_server instead of bdaddr_t avrcp: Convert to accept btd_adapter instead of bdaddr_t avctp: Convert register/unregister to accept btd_adapter avdtp: Replace avdtp_get_peers with adapter and device getters audio: Use manager_get_device to get device object audio: Make manager_get_device accept btd_device audio: Simplify manager_find_device avctp: Remove double looking for audio device profiles/audio/a2dp.c | 75 +++++++++++--------------- profiles/audio/a2dp.h | 8 +-- profiles/audio/avctp.c | 96 +++++++++++++++------------------- profiles/audio/avctp.h | 4 +- profiles/audio/avdtp.c | 119 ++++++++++++++++++------------------------ profiles/audio/avdtp.h | 10 ++-- profiles/audio/avrcp.c | 37 ++++++------- profiles/audio/avrcp.h | 6 +-- profiles/audio/manager.c | 133 +++++++++-------------------------------------- profiles/audio/manager.h | 17 +----- profiles/audio/media.c | 35 ++++++------- profiles/audio/media.h | 4 +- profiles/audio/sink.c | 5 +- profiles/audio/source.c | 5 +- 14 files changed, 206 insertions(+), 348 deletions(-) -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html