Bluetooth: Use __packed annotation for drivers
Gustavo F. Padovan [Mon, 19 Jul 2010 16:54:05 +0000 (13:54 -0300)]
Use the __packed annotation instead of the __attribute__((packed)).

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

drivers/bluetooth/bpa10x.c
drivers/bluetooth/btmrvl_drv.h
drivers/bluetooth/dtl1_cs.c
drivers/bluetooth/hci_ll.c

index d945cd1..751b338 100644 (file)
@@ -62,7 +62,7 @@ struct hci_vendor_hdr {
        __u8    type;
        __le16  snum;
        __le16  dlen;
-} __attribute__ ((packed));
+} __packed;
 
 static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count)
 {
index 872cb6c..90bda50 100644 (file)
@@ -119,13 +119,13 @@ struct btmrvl_cmd {
        __le16 ocf_ogf;
        u8 length;
        u8 data[4];
-} __attribute__ ((packed));
+} __packed;
 
 struct btmrvl_event {
        u8 ec;          /* event counter */
        u8 length;
        u8 data[4];
-} __attribute__ ((packed));
+} __packed;
 
 /* Prototype of global function */
 
index ef044d5..cbe9e44 100644 (file)
@@ -104,7 +104,7 @@ typedef struct {
        u8 type;
        u8 zero;
        u16 len;
-} __attribute__ ((packed)) nsh_t;      /* Nokia Specific Header */
+} __packed nsh_t;      /* Nokia Specific Header */
 
 #define NSHL  4                                /* Nokia Specific Header Length */
 
index fb8445c..5744aba 100644 (file)
@@ -74,7 +74,7 @@ enum hcill_states_e {
 
 struct hcill_cmd {
        u8 cmd;
-} __attribute__((packed));
+} __packed;
 
 struct ll_struct {
        unsigned long rx_state;