summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorGustavo Padovan2012-05-28 03:27:51 +0200
committerJohan Hedberg2012-06-05 05:34:10 +0200
commit80b980279508edd1a92d8d77ec99b0ddad00c5fe (patch)
tree28ef9be0b618f37c3fc2b08c1114748517c3fe4a /include/net/bluetooth/l2cap.h
parentBluetooth: Really fix registering hci with duplicate name (diff)
downloadkernel-qcow2-linux-80b980279508edd1a92d8d77ec99b0ddad00c5fe.tar.gz
kernel-qcow2-linux-80b980279508edd1a92d8d77ec99b0ddad00c5fe.tar.xz
kernel-qcow2-linux-80b980279508edd1a92d8d77ec99b0ddad00c5fe.zip
Bluetooth: Use chan as parameters for l2cap chan ops
Use chan instead of void * makes more sense here. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r--include/net/bluetooth/l2cap.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index f44344b92d2d..aa2dbc680d5c 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -527,10 +527,12 @@ struct l2cap_chan {
struct l2cap_ops {
char *name;
- struct l2cap_chan *(*new_connection) (void *data);
- int (*recv) (void *data, struct sk_buff *skb);
- void (*close) (void *data);
- void (*state_change) (void *data, int state);
+ struct l2cap_chan *(*new_connection) (struct l2cap_chan *chan);
+ int (*recv) (struct l2cap_chan * chan,
+ struct sk_buff *skb);
+ void (*close) (struct l2cap_chan *chan);
+ void (*state_change) (struct l2cap_chan *chan,
+ int state);
struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
unsigned long len, int nb);
};