aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-06-08 10:05:31 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 17:42:41 +0200
commit67f86a45bb82091a2775561a1e498010afff54ee (patch)
tree9b2856a75783bf619321ad7cf4b0096cfd50c0b0 /include/net/bluetooth/l2cap.h
parentBluetooth: ath3k: reduce pipe setting times in ath3k_load_fwfile() (diff)
downloadlinux-dev-67f86a45bb82091a2775561a1e498010afff54ee.tar.xz
linux-dev-67f86a45bb82091a2775561a1e498010afff54ee.zip
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 'include/net/bluetooth/l2cap.h')
-rw-r--r--include/net/bluetooth/l2cap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 4abdcb220e3a..cf67420616e5 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -579,7 +579,7 @@ struct l2cap_chan {
struct list_head global_l;
void *data;
- struct l2cap_ops *ops;
+ const struct l2cap_ops *ops;
struct mutex lock;
};