Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Fix coding style in all .h files

Proper align the struct definitions.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>

+39 -39
+4 -4
include/net/bluetooth/hci.h
··· 693 693 694 694 #define HCI_OP_WRITE_EIR 0x0c52 695 695 struct hci_cp_write_eir { 696 - __u8 fec; 697 - __u8 data[HCI_MAX_EIR_LENGTH]; 696 + __u8 fec; 697 + __u8 data[HCI_MAX_EIR_LENGTH]; 698 698 } __packed; 699 699 700 700 #define HCI_OP_READ_SSP_MODE 0x0c55 ··· 725 725 726 726 #define HCI_OP_WRITE_LE_HOST_SUPPORTED 0x0c6d 727 727 struct hci_cp_write_le_host_supported { 728 - __u8 le; 729 - __u8 simul; 728 + __u8 le; 729 + __u8 simul; 730 730 } __packed; 731 731 732 732 #define HCI_OP_READ_LOCAL_VERSION 0x1001
+5 -5
include/net/bluetooth/hci_core.h
··· 57 57 }; 58 58 59 59 struct discovery_state { 60 - int type; 60 + int type; 61 61 enum { 62 62 DISCOVERY_STOPPED, 63 63 DISCOVERY_STARTING, ··· 65 65 DISCOVERY_RESOLVING, 66 66 DISCOVERY_STOPPING, 67 67 } state; 68 - struct list_head all; /* All devices found during inquiry */ 69 - struct list_head unknown; /* Name state not known */ 70 - struct list_head resolve; /* Name needs to be resolved */ 71 - __u32 timestamp; 68 + struct list_head all; /* All devices found during inquiry */ 69 + struct list_head unknown; /* Name state not known */ 70 + struct list_head resolve; /* Name needs to be resolved */ 71 + __u32 timestamp; 72 72 }; 73 73 74 74 struct hci_conn_hash {
+4 -4
include/net/bluetooth/hci_mon.h
··· 41 41 #define HCI_MON_SCO_RX_PKT 7 42 42 43 43 struct hci_mon_new_index { 44 - __u8 type; 45 - __u8 bus; 46 - bdaddr_t bdaddr; 47 - char name[8]; 44 + __u8 type; 45 + __u8 bus; 46 + bdaddr_t bdaddr; 47 + char name[8]; 48 48 } __packed; 49 49 #define HCI_MON_NEW_INDEX_SIZE 16 50 50
+26 -26
include/net/bluetooth/l2cap.h
··· 492 492 struct sk_buff_head srej_q; 493 493 struct list_head srej_l; 494 494 495 - struct list_head list; 496 - struct list_head global_l; 495 + struct list_head list; 496 + struct list_head global_l; 497 497 498 - void *data; 499 - struct l2cap_ops *ops; 498 + void *data; 499 + struct l2cap_ops *ops; 500 500 struct mutex lock; 501 501 }; 502 502 503 503 struct l2cap_ops { 504 - char *name; 504 + char *name; 505 505 506 506 struct l2cap_chan *(*new_connection) (void *data); 507 507 int (*recv) (void *data, struct sk_buff *skb); ··· 513 513 }; 514 514 515 515 struct l2cap_conn { 516 - struct hci_conn *hcon; 517 - struct hci_chan *hchan; 516 + struct hci_conn *hcon; 517 + struct hci_chan *hchan; 518 518 519 - bdaddr_t *dst; 520 - bdaddr_t *src; 519 + bdaddr_t *dst; 520 + bdaddr_t *src; 521 521 522 - unsigned int mtu; 522 + unsigned int mtu; 523 523 524 - __u32 feat_mask; 525 - __u8 fixed_chan_mask; 524 + __u32 feat_mask; 525 + __u8 fixed_chan_mask; 526 526 527 - __u8 info_state; 528 - __u8 info_ident; 527 + __u8 info_state; 528 + __u8 info_ident; 529 529 530 - struct delayed_work info_timer; 530 + struct delayed_work info_timer; 531 531 532 - spinlock_t lock; 532 + spinlock_t lock; 533 533 534 - struct sk_buff *rx_skb; 535 - __u32 rx_len; 536 - __u8 tx_ident; 534 + struct sk_buff *rx_skb; 535 + __u32 rx_len; 536 + __u8 tx_ident; 537 537 538 - __u8 disc_reason; 538 + __u8 disc_reason; 539 539 540 - struct delayed_work security_timer; 541 - struct smp_chan *smp_chan; 540 + struct delayed_work security_timer; 541 + struct smp_chan *smp_chan; 542 542 543 - struct list_head chan_l; 544 - struct mutex chan_lock; 543 + struct list_head chan_l; 544 + struct mutex chan_lock; 545 545 }; 546 546 547 547 #define L2CAP_INFO_CL_MTU_REQ_SENT 0x01 ··· 556 556 #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) 557 557 558 558 struct l2cap_pinfo { 559 - struct bt_sock bt; 559 + struct bt_sock bt; 560 560 struct l2cap_chan *chan; 561 - struct sk_buff *rx_busy_skb; 561 + struct sk_buff *rx_busy_skb; 562 562 }; 563 563 564 564 enum {