mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
Bluetooth: Fix some code style issues in hci_core.h
Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
0786f8b777
commit
adc4266d87
1 changed files with 28 additions and 28 deletions
|
@ -199,37 +199,37 @@ struct hci_dev {
|
||||||
struct hci_conn {
|
struct hci_conn {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
|
|
||||||
atomic_t refcnt;
|
atomic_t refcnt;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
|
|
||||||
bdaddr_t dst;
|
bdaddr_t dst;
|
||||||
__u16 handle;
|
__u16 handle;
|
||||||
__u16 state;
|
__u16 state;
|
||||||
__u8 mode;
|
__u8 mode;
|
||||||
__u8 type;
|
__u8 type;
|
||||||
__u8 out;
|
__u8 out;
|
||||||
__u8 attempt;
|
__u8 attempt;
|
||||||
__u8 dev_class[3];
|
__u8 dev_class[3];
|
||||||
__u8 features[8];
|
__u8 features[8];
|
||||||
__u8 ssp_mode;
|
__u8 ssp_mode;
|
||||||
__u16 interval;
|
__u16 interval;
|
||||||
__u16 pkt_type;
|
__u16 pkt_type;
|
||||||
__u16 link_policy;
|
__u16 link_policy;
|
||||||
__u32 link_mode;
|
__u32 link_mode;
|
||||||
__u8 auth_type;
|
__u8 auth_type;
|
||||||
__u8 sec_level;
|
__u8 sec_level;
|
||||||
__u8 pending_sec_level;
|
__u8 pending_sec_level;
|
||||||
__u8 pin_length;
|
__u8 pin_length;
|
||||||
__u8 io_capability;
|
__u8 io_capability;
|
||||||
__u8 power_save;
|
__u8 power_save;
|
||||||
__u16 disc_timeout;
|
__u16 disc_timeout;
|
||||||
unsigned long pend;
|
unsigned long pend;
|
||||||
|
|
||||||
__u8 remote_cap;
|
__u8 remote_cap;
|
||||||
__u8 remote_oob;
|
__u8 remote_oob;
|
||||||
__u8 remote_auth;
|
__u8 remote_auth;
|
||||||
|
|
||||||
unsigned int sent;
|
unsigned int sent;
|
||||||
|
|
||||||
struct sk_buff_head data_q;
|
struct sk_buff_head data_q;
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ static inline void hci_conn_hash_del(struct hci_dev *hdev, struct hci_conn *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct hci_conn *hci_conn_hash_lookup_handle(struct hci_dev *hdev,
|
static inline struct hci_conn *hci_conn_hash_lookup_handle(struct hci_dev *hdev,
|
||||||
__u16 handle)
|
__u16 handle)
|
||||||
{
|
{
|
||||||
struct hci_conn_hash *h = &hdev->conn_hash;
|
struct hci_conn_hash *h = &hdev->conn_hash;
|
||||||
struct list_head *p;
|
struct list_head *p;
|
||||||
|
@ -362,7 +362,7 @@ static inline struct hci_conn *hci_conn_hash_lookup_handle(struct hci_dev *hdev,
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct hci_conn *hci_conn_hash_lookup_ba(struct hci_dev *hdev,
|
static inline struct hci_conn *hci_conn_hash_lookup_ba(struct hci_dev *hdev,
|
||||||
__u8 type, bdaddr_t *ba)
|
__u8 type, bdaddr_t *ba)
|
||||||
{
|
{
|
||||||
struct hci_conn_hash *h = &hdev->conn_hash;
|
struct hci_conn_hash *h = &hdev->conn_hash;
|
||||||
struct list_head *p;
|
struct list_head *p;
|
||||||
|
@ -377,7 +377,7 @@ static inline struct hci_conn *hci_conn_hash_lookup_ba(struct hci_dev *hdev,
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct hci_conn *hci_conn_hash_lookup_state(struct hci_dev *hdev,
|
static inline struct hci_conn *hci_conn_hash_lookup_state(struct hci_dev *hdev,
|
||||||
__u8 type, __u16 state)
|
__u8 type, __u16 state)
|
||||||
{
|
{
|
||||||
struct hci_conn_hash *h = &hdev->conn_hash;
|
struct hci_conn_hash *h = &hdev->conn_hash;
|
||||||
struct list_head *p;
|
struct list_head *p;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue