Bluetooth: 6lowpan: change netdev_priv to lowpan_dev
authorAlexander Aring <alex.aring@gmail.com>
Tue, 11 Aug 2015 19:44:07 +0000 (21:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 11 Aug 2015 20:05:36 +0000 (22:05 +0200)
The usually way to get the btle lowpan private data is to use the
introduced lowpan_dev inline function. This patch will cleanup by using
lowpan_dev consequently.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c

index 0ffe2e24020aa86b80115221811f324511cc1385..24ed5b02cefcf2a20989fb43ca538338158bb796 100644 (file)
@@ -859,7 +859,7 @@ static int setup_netdev(struct l2cap_chan *chan, struct lowpan_dev **dev)
        SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev);
        SET_NETDEV_DEVTYPE(netdev, &bt_type);
 
-       *dev = netdev_priv(netdev);
+       *dev = lowpan_dev(netdev);
        (*dev)->netdev = netdev;
        (*dev)->hdev = chan->conn->hcon->hdev;
        INIT_LIST_HEAD(&(*dev)->peers);