Commit 7611fced authored by Peter Hurley's avatar Peter Hurley Committed by Marcel Holtmann

Bluetooth: Rename __rfcomm_dev_get() to __rfcomm_dev_lookup()

Functions which search lists for matching id's are more
commonly named *_lookup, which is the convention in the
bluetooth core as well.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Tested-By: default avatarAlexander Holler <holler@ahsoftware.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b4d21f19
...@@ -140,7 +140,7 @@ static const struct tty_port_operations rfcomm_port_ops = { ...@@ -140,7 +140,7 @@ static const struct tty_port_operations rfcomm_port_ops = {
.carrier_raised = rfcomm_dev_carrier_raised, .carrier_raised = rfcomm_dev_carrier_raised,
}; };
static struct rfcomm_dev *__rfcomm_dev_get(int id) static struct rfcomm_dev *__rfcomm_dev_lookup(int id)
{ {
struct rfcomm_dev *dev; struct rfcomm_dev *dev;
...@@ -157,7 +157,7 @@ static struct rfcomm_dev *rfcomm_dev_get(int id) ...@@ -157,7 +157,7 @@ static struct rfcomm_dev *rfcomm_dev_get(int id)
spin_lock(&rfcomm_dev_lock); spin_lock(&rfcomm_dev_lock);
dev = __rfcomm_dev_get(id); dev = __rfcomm_dev_lookup(id);
if (dev && !tty_port_get(&dev->port)) if (dev && !tty_port_get(&dev->port))
dev = NULL; dev = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment