diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-06-08 04:05:31 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 11:42:41 -0400 |
commit | 67f86a45bb82091a2775561a1e498010afff54ee (patch) | |
tree | 9b2856a75783bf619321ad7cf4b0096cfd50c0b0 /net/bluetooth/a2mp.c | |
parent | b0c3e138b467a5cc3b2eb44c6525227f66d1496d (diff) |
Bluetooth: Use const for struct l2cap_ops field
The struct l2cap_ops field should not allow any modifications and thus
it is better declared as const.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r-- | net/bluetooth/a2mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index 9514cc9e850c..1996b4c4dfd5 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
@@ -704,7 +704,7 @@ static struct sk_buff *a2mp_chan_alloc_skb_cb(struct l2cap_chan *chan, | |||
704 | return skb; | 704 | return skb; |
705 | } | 705 | } |
706 | 706 | ||
707 | static struct l2cap_ops a2mp_chan_ops = { | 707 | static const struct l2cap_ops a2mp_chan_ops = { |
708 | .name = "L2CAP A2MP channel", | 708 | .name = "L2CAP A2MP channel", |
709 | .recv = a2mp_chan_recv_cb, | 709 | .recv = a2mp_chan_recv_cb, |
710 | .close = a2mp_chan_close_cb, | 710 | .close = a2mp_chan_close_cb, |