aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-06-08 04:05:31 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 11:42:41 -0400
commit67f86a45bb82091a2775561a1e498010afff54ee (patch)
tree9b2856a75783bf619321ad7cf4b0096cfd50c0b0 /net/bluetooth/l2cap_sock.c
parentb0c3e138b467a5cc3b2eb44c6525227f66d1496d (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/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index e1378693cc90..11e2207717b6 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -1375,7 +1375,7 @@ static void l2cap_sock_suspend_cb(struct l2cap_chan *chan)
1375 sk->sk_state_change(sk); 1375 sk->sk_state_change(sk);
1376} 1376}
1377 1377
1378static struct l2cap_ops l2cap_chan_ops = { 1378static const struct l2cap_ops l2cap_chan_ops = {
1379 .name = "L2CAP Socket Interface", 1379 .name = "L2CAP Socket Interface",
1380 .new_connection = l2cap_sock_new_connection_cb, 1380 .new_connection = l2cap_sock_new_connection_cb,
1381 .recv = l2cap_sock_recv_cb, 1381 .recv = l2cap_sock_recv_cb,