diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-03 23:33:56 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-07 22:43:30 -0500 |
commit | 65390587c7bcf8bb60b48387db766d8d7dfea982 (patch) | |
tree | 51037c1b24f8234f9e8ddc07cf594ce42fed1b91 /net/bluetooth/l2cap_sock.c | |
parent | bb58f747e519aba07a6f05a78d58cf8a0788e2d5 (diff) |
Bluetooth: move l2cap_sock_ops to l2cap_sock.c
First step to move all l2cap_sock_ops function to l2cap_sock.c
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r-- | net/bluetooth/l2cap_sock.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index 6ea1894cecb7..c1455f72bf03 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c | |||
@@ -62,7 +62,6 @@ static void l2cap_sock_timeout(unsigned long arg) | |||
62 | sock_put(sk); | 62 | sock_put(sk); |
63 | } | 63 | } |
64 | 64 | ||
65 | |||
66 | static void l2cap_sock_destruct(struct sock *sk) | 65 | static void l2cap_sock_destruct(struct sock *sk) |
67 | { | 66 | { |
68 | BT_DBG("sk %p", sk); | 67 | BT_DBG("sk %p", sk); |
@@ -176,6 +175,26 @@ static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol, | |||
176 | return 0; | 175 | return 0; |
177 | } | 176 | } |
178 | 177 | ||
178 | const struct proto_ops l2cap_sock_ops = { | ||
179 | .family = PF_BLUETOOTH, | ||
180 | .owner = THIS_MODULE, | ||
181 | .release = l2cap_sock_release, | ||
182 | .bind = l2cap_sock_bind, | ||
183 | .connect = l2cap_sock_connect, | ||
184 | .listen = l2cap_sock_listen, | ||
185 | .accept = l2cap_sock_accept, | ||
186 | .getname = l2cap_sock_getname, | ||
187 | .sendmsg = l2cap_sock_sendmsg, | ||
188 | .recvmsg = l2cap_sock_recvmsg, | ||
189 | .poll = bt_sock_poll, | ||
190 | .ioctl = bt_sock_ioctl, | ||
191 | .mmap = sock_no_mmap, | ||
192 | .socketpair = sock_no_socketpair, | ||
193 | .shutdown = l2cap_sock_shutdown, | ||
194 | .setsockopt = l2cap_sock_setsockopt, | ||
195 | .getsockopt = l2cap_sock_getsockopt | ||
196 | }; | ||
197 | |||
179 | static const struct net_proto_family l2cap_sock_family_ops = { | 198 | static const struct net_proto_family l2cap_sock_family_ops = { |
180 | .family = PF_BLUETOOTH, | 199 | .family = PF_BLUETOOTH, |
181 | .owner = THIS_MODULE, | 200 | .owner = THIS_MODULE, |