diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-07-11 00:19:41 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-11 06:58:50 -0400 |
commit | 2a0dccb3df2c8775d1a6e962aa88c4c22693c887 (patch) | |
tree | dc179cc13324bc10194d9ece5a0aa7f14f10a1e3 | |
parent | a6801ca9856c24298cba2c1fafd3da818acdaab6 (diff) |
Bluetooth: Move struct sco_pinfo into net/bluetooth/sco.c
There exists no external user of struct sco_pinfo and sco_pi and
thus move it into the one place that is actually using it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r-- | include/net/bluetooth/sco.h | 12 | ||||
-rw-r--r-- | net/bluetooth/sco.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/net/bluetooth/sco.h b/include/net/bluetooth/sco.h index 2019d1a0996a..7fec7cbd7396 100644 --- a/include/net/bluetooth/sco.h +++ b/include/net/bluetooth/sco.h | |||
@@ -64,16 +64,4 @@ struct sco_conn { | |||
64 | #define sco_conn_lock(c) spin_lock(&c->lock); | 64 | #define sco_conn_lock(c) spin_lock(&c->lock); |
65 | #define sco_conn_unlock(c) spin_unlock(&c->lock); | 65 | #define sco_conn_unlock(c) spin_unlock(&c->lock); |
66 | 66 | ||
67 | /* ----- SCO socket info ----- */ | ||
68 | #define sco_pi(sk) ((struct sco_pinfo *) sk) | ||
69 | |||
70 | struct sco_pinfo { | ||
71 | struct bt_sock bt; | ||
72 | bdaddr_t src; | ||
73 | bdaddr_t dst; | ||
74 | __u32 flags; | ||
75 | __u16 setting; | ||
76 | struct sco_conn *conn; | ||
77 | }; | ||
78 | |||
79 | #endif /* __SCO_H */ | 67 | #endif /* __SCO_H */ |
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index c06dbd3938e8..c71698642ec6 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -46,6 +46,18 @@ static void sco_chan_del(struct sock *sk, int err); | |||
46 | static void sco_sock_close(struct sock *sk); | 46 | static void sco_sock_close(struct sock *sk); |
47 | static void sco_sock_kill(struct sock *sk); | 47 | static void sco_sock_kill(struct sock *sk); |
48 | 48 | ||
49 | /* ----- SCO socket info ----- */ | ||
50 | #define sco_pi(sk) ((struct sco_pinfo *) sk) | ||
51 | |||
52 | struct sco_pinfo { | ||
53 | struct bt_sock bt; | ||
54 | bdaddr_t src; | ||
55 | bdaddr_t dst; | ||
56 | __u32 flags; | ||
57 | __u16 setting; | ||
58 | struct sco_conn *conn; | ||
59 | }; | ||
60 | |||
49 | /* ---- SCO timers ---- */ | 61 | /* ---- SCO timers ---- */ |
50 | static void sco_sock_timeout(unsigned long arg) | 62 | static void sco_sock_timeout(unsigned long arg) |
51 | { | 63 | { |