Bluetooth: Fix coding style in all .h files
authorGustavo F. Padovan <padovan@profusion.mobi>
Wed, 7 Mar 2012 02:48:33 +0000 (23:48 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 7 Mar 2012 03:04:25 +0000 (00:04 -0300)
Proper align the struct definitions.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
include/net/bluetooth/hci_mon.h
include/net/bluetooth/l2cap.h

index 3acbebfb22b9d3038a76715de84623ab62ca851e..344b0f972828f4167393948c4263a628309ca7c6 100644 (file)
@@ -693,8 +693,8 @@ struct hci_cp_host_buffer_size {
 
 #define HCI_OP_WRITE_EIR               0x0c52
 struct hci_cp_write_eir {
-       __u8            fec;
-       __u8            data[HCI_MAX_EIR_LENGTH];
+       __u8    fec;
+       __u8    data[HCI_MAX_EIR_LENGTH];
 } __packed;
 
 #define HCI_OP_READ_SSP_MODE           0x0c55
@@ -725,8 +725,8 @@ struct hci_rp_read_flow_control_mode {
 
 #define HCI_OP_WRITE_LE_HOST_SUPPORTED 0x0c6d
 struct hci_cp_write_le_host_supported {
-       __u8 le;
-       __u8 simul;
+       __u8    le;
+       __u8    simul;
 } __packed;
 
 #define HCI_OP_READ_LOCAL_VERSION      0x1001
index 25cb0a15b57977ab2ce44c408b51a64e18c6818d..cbbf68a8510d632adb8f7534aa27224b18ff1141 100644 (file)
@@ -57,7 +57,7 @@ struct inquiry_entry {
 };
 
 struct discovery_state {
-       int type;
+       int                     type;
        enum {
                DISCOVERY_STOPPED,
                DISCOVERY_STARTING,
@@ -65,10 +65,10 @@ struct discovery_state {
                DISCOVERY_RESOLVING,
                DISCOVERY_STOPPING,
        } state;
-       struct list_head all;           /* All devices found during inquiry */
-       struct list_head unknown;       /* Name state not known */
-       struct list_head resolve;       /* Name needs to be resolved */
-       __u32           timestamp;
+       struct list_head        all;            /* All devices found during inquiry */
+       struct list_head        unknown;        /* Name state not known */
+       struct list_head        resolve;        /* Name needs to be resolved */
+       __u32                   timestamp;
 };
 
 struct hci_conn_hash {
index 07a25c92502c05f2772291bdcffe66cdd32fd4e9..77d1e5764185acc0aea30c3cc4fc7eb2a3d79509 100644 (file)
@@ -41,10 +41,10 @@ struct hci_mon_hdr {
 #define HCI_MON_SCO_RX_PKT     7
 
 struct hci_mon_new_index {
-       __u8    type;
-       __u8    bus;
-       bdaddr_t bdaddr;
-       char    name[8];
+       __u8            type;
+       __u8            bus;
+       bdaddr_t        bdaddr;
+       char            name[8];
 } __packed;
 #define HCI_MON_NEW_INDEX_SIZE 16
 
index e4669d0230c5a689046982e37d0b63377b4ac9b5..9b242c6bf55b2d9ecf8b0bebb725a45b1a7ee947 100644 (file)
@@ -492,16 +492,16 @@ struct l2cap_chan {
        struct sk_buff_head     srej_q;
        struct list_head        srej_l;
 
-       struct list_head list;
-       struct list_head global_l;
+       struct list_head        list;
+       struct list_head        global_l;
 
-       void            *data;
-       struct l2cap_ops *ops;
+       void                    *data;
+       struct l2cap_ops        *ops;
        struct mutex            lock;
 };
 
 struct l2cap_ops {
-       char            *name;
+       char                    *name;
 
        struct l2cap_chan       *(*new_connection) (void *data);
        int                     (*recv) (void *data, struct sk_buff *skb);
@@ -513,35 +513,35 @@ struct l2cap_ops {
 };
 
 struct l2cap_conn {
-       struct hci_conn *hcon;
-       struct hci_chan *hchan;
+       struct hci_conn         *hcon;
+       struct hci_chan         *hchan;
 
-       bdaddr_t        *dst;
-       bdaddr_t        *src;
+       bdaddr_t                *dst;
+       bdaddr_t                *src;
 
-       unsigned int    mtu;
+       unsigned int            mtu;
 
-       __u32           feat_mask;
-       __u8            fixed_chan_mask;
+       __u32                   feat_mask;
+       __u8                    fixed_chan_mask;
 
-       __u8            info_state;
-       __u8            info_ident;
+       __u8                    info_state;
+       __u8                    info_ident;
 
-       struct delayed_work info_timer;
+       struct delayed_work     info_timer;
 
-       spinlock_t      lock;
+       spinlock_t              lock;
 
-       struct sk_buff *rx_skb;
-       __u32           rx_len;
-       __u8            tx_ident;
+       struct sk_buff          *rx_skb;
+       __u32                   rx_len;
+       __u8                    tx_ident;
 
-       __u8            disc_reason;
+       __u8                    disc_reason;
 
-       struct delayed_work  security_timer;
-       struct smp_chan *smp_chan;
+       struct delayed_work     security_timer;
+       struct smp_chan         *smp_chan;
 
-       struct list_head chan_l;
-       struct mutex    chan_lock;
+       struct list_head        chan_l;
+       struct mutex            chan_lock;
 };
 
 #define L2CAP_INFO_CL_MTU_REQ_SENT     0x01
@@ -556,9 +556,9 @@ struct l2cap_conn {
 #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk)
 
 struct l2cap_pinfo {
-       struct bt_sock  bt;
+       struct bt_sock          bt;
        struct l2cap_chan       *chan;
-       struct sk_buff  *rx_busy_skb;
+       struct sk_buff          *rx_busy_skb;
 };
 
 enum {