diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-07-19 12:54:05 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-21 13:39:13 -0400 |
commit | 81ca405aee7e4a1a432c3887bc83ae798fd2cccd (patch) | |
tree | 09543baeea93291065a5cdffe3859fb01234c6fa /drivers/bluetooth | |
parent | 66c853cc21bd387a9a2109dcf3b3d53cc9ee9edf (diff) |
Bluetooth: Use __packed annotation for drivers
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btmrvl_drv.h | 4 | ||||
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/hci_ll.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index d945cd12433a..751b338d904a 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -62,7 +62,7 @@ struct hci_vendor_hdr { | |||
62 | __u8 type; | 62 | __u8 type; |
63 | __le16 snum; | 63 | __le16 snum; |
64 | __le16 dlen; | 64 | __le16 dlen; |
65 | } __attribute__ ((packed)); | 65 | } __packed; |
66 | 66 | ||
67 | static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count) | 67 | static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count) |
68 | { | 68 | { |
diff --git a/drivers/bluetooth/btmrvl_drv.h b/drivers/bluetooth/btmrvl_drv.h index 872cb6cfcd0d..90bda50dc446 100644 --- a/drivers/bluetooth/btmrvl_drv.h +++ b/drivers/bluetooth/btmrvl_drv.h | |||
@@ -119,13 +119,13 @@ struct btmrvl_cmd { | |||
119 | __le16 ocf_ogf; | 119 | __le16 ocf_ogf; |
120 | u8 length; | 120 | u8 length; |
121 | u8 data[4]; | 121 | u8 data[4]; |
122 | } __attribute__ ((packed)); | 122 | } __packed; |
123 | 123 | ||
124 | struct btmrvl_event { | 124 | struct btmrvl_event { |
125 | u8 ec; /* event counter */ | 125 | u8 ec; /* event counter */ |
126 | u8 length; | 126 | u8 length; |
127 | u8 data[4]; | 127 | u8 data[4]; |
128 | } __attribute__ ((packed)); | 128 | } __packed; |
129 | 129 | ||
130 | /* Prototype of global function */ | 130 | /* Prototype of global function */ |
131 | 131 | ||
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index ef044d55cb25..cbe9e44a42e9 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -104,7 +104,7 @@ typedef struct { | |||
104 | u8 type; | 104 | u8 type; |
105 | u8 zero; | 105 | u8 zero; |
106 | u16 len; | 106 | u16 len; |
107 | } __attribute__ ((packed)) nsh_t; /* Nokia Specific Header */ | 107 | } __packed nsh_t; /* Nokia Specific Header */ |
108 | 108 | ||
109 | #define NSHL 4 /* Nokia Specific Header Length */ | 109 | #define NSHL 4 /* Nokia Specific Header Length */ |
110 | 110 | ||
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index fb8445c7365e..5744aba8272e 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c | |||
@@ -74,7 +74,7 @@ enum hcill_states_e { | |||
74 | 74 | ||
75 | struct hcill_cmd { | 75 | struct hcill_cmd { |
76 | u8 cmd; | 76 | u8 cmd; |
77 | } __attribute__((packed)); | 77 | } __packed; |
78 | 78 | ||
79 | struct ll_struct { | 79 | struct ll_struct { |
80 | unsigned long rx_state; | 80 | unsigned long rx_state; |