Skip to content

Commit 7611fce

Browse files
peterhurleyholtmann
authored andcommitted
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>
1 parent b4d21f1 commit 7611fce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • net/bluetooth/rfcomm

‎net/bluetooth/rfcomm/tty.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static const struct tty_port_operations rfcomm_port_ops = {
140140
.carrier_raised = rfcomm_dev_carrier_raised,
141141
};
142142

143-
static struct rfcomm_dev *__rfcomm_dev_get(int id)
143+
static struct rfcomm_dev *__rfcomm_dev_lookup(int id)
144144
{
145145
struct rfcomm_dev *dev;
146146

@@ -157,7 +157,7 @@ static struct rfcomm_dev *rfcomm_dev_get(int id)
157157

158158
spin_lock(&rfcomm_dev_lock);
159159

160-
dev = __rfcomm_dev_get(id);
160+
dev = __rfcomm_dev_lookup(id);
161161

162162
if (dev && !tty_port_get(&dev->port))
163163
dev = NULL;

0 commit comments

Comments
 (0)