diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-02-09 20:59:17 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-14 16:39:31 -0500 |
commit | 7611fcedd6caae0586397508a2414788d87a231c (patch) | |
tree | 8dea999e8cb4da3baf7d48b6c0aef715f26ccbab /net | |
parent | b4d21f193985218c6c75969376249f69e49eb6ee (diff) |
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: Peter Hurley <peter@hurleysoftware.com>
Tested-By: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index fa1226f17e86..4a38b5454ab0 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
@@ -140,7 +140,7 @@ static const struct tty_port_operations rfcomm_port_ops = { | |||
140 | .carrier_raised = rfcomm_dev_carrier_raised, | 140 | .carrier_raised = rfcomm_dev_carrier_raised, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static struct rfcomm_dev *__rfcomm_dev_get(int id) | 143 | static struct rfcomm_dev *__rfcomm_dev_lookup(int id) |
144 | { | 144 | { |
145 | struct rfcomm_dev *dev; | 145 | struct rfcomm_dev *dev; |
146 | 146 | ||
@@ -157,7 +157,7 @@ static struct rfcomm_dev *rfcomm_dev_get(int id) | |||
157 | 157 | ||
158 | spin_lock(&rfcomm_dev_lock); | 158 | spin_lock(&rfcomm_dev_lock); |
159 | 159 | ||
160 | dev = __rfcomm_dev_get(id); | 160 | dev = __rfcomm_dev_lookup(id); |
161 | 161 | ||
162 | if (dev && !tty_port_get(&dev->port)) | 162 | if (dev && !tty_port_get(&dev->port)) |
163 | dev = NULL; | 163 | dev = NULL; |