aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-05-27 21:27:51 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-04 23:34:10 -0400
commit80b980279508edd1a92d8d77ec99b0ddad00c5fe (patch)
tree28ef9be0b618f37c3fc2b08c1114748517c3fe4a /include/net/bluetooth/l2cap.h
parent3df92b31b2b593c5a067634ef2c30e76b2b2548d (diff)
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 {
527struct l2cap_ops { 527struct l2cap_ops {
528 char *name; 528 char *name;
529 529
530 struct l2cap_chan *(*new_connection) (void *data); 530 struct l2cap_chan *(*new_connection) (struct l2cap_chan *chan);
531 int (*recv) (void *data, struct sk_buff *skb); 531 int (*recv) (struct l2cap_chan * chan,
532 void (*close) (void *data); 532 struct sk_buff *skb);
533 void (*state_change) (void *data, int state); 533 void (*close) (struct l2cap_chan *chan);
534 void (*state_change) (struct l2cap_chan *chan,
535 int state);
534 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, 536 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
535 unsigned long len, int nb); 537 unsigned long len, int nb);
536}; 538};