commit | ee9ebe4d0b78e64f0c3741085d230ea18c15f4e4 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Mon Oct 06 06:53:08 2014 -0500 |
committer | Greg Kroah-Hartman <greg@kroah.com> | Mon Oct 06 08:56:42 2014 -0700 |
tree | 5daa4e5e458430d6f45c8976fca016486697beeb | |
parent | 369fb8324969a94c2f243ea56641993ee2061e60 [diff] |
greybus: add bg_hd_connection_find() Add a function that looks up a connection given the host device pointer an the host cport id. This will be used to determine which connection an incoming message is associated with. Replace the list tracking host device connections with a red-black tree so lookup can scale and be done quickly. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>