summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-09 06:13:45 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-08 20:35:16 -0800
commitfde3d28df0078b24c63ab030af1eb2851955d99d (patch)
tree74d00e0653b6065b9d889e83a48a7b5e48566efb
parentf2459201c72e8f8553644505eed19954d4c3a023 (diff)
staging:nokia_h4p:Replace __attribute__((packed)) by __packed
This patch fixes the checkpatch.pl warning: WARNING: __packed is preferred over __attribute__((packed)). As the macro: #define __packed __attribute__((packed)) is defined in compiler-gcc.h, __attribute__((packed)) is replaced by __packed. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/nokia_h4p/hci_h4p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/nokia_h4p/hci_h4p.h b/drivers/staging/nokia_h4p/hci_h4p.h
index fd7a6407f20c..107e1dcfe5e8 100644
--- a/drivers/staging/nokia_h4p/hci_h4p.h
+++ b/drivers/staging/nokia_h4p/hci_h4p.h
@@ -108,11 +108,11 @@ struct hci_h4p_info {
struct hci_h4p_radio_hdr {
__u8 evt;
__u8 dlen;
-} __attribute__ ((packed));
+} __packed;
struct hci_h4p_neg_hdr {
__u8 dlen;
-} __attribute__ ((packed));
+} __packed;
#define H4P_NEG_HDR_SIZE 1
#define H4P_NEG_REQ 0x00
@@ -133,7 +133,7 @@ struct hci_h4p_neg_cmd {
__u8 proto;
__u16 sys_clk;
__u16 unused2;
-} __attribute__ ((packed));
+} __packed;
struct hci_h4p_neg_evt {
__u8 ack;
@@ -144,20 +144,20 @@ struct hci_h4p_neg_evt {
__u16 unused2;
__u8 man_id;
__u8 ver_id;
-} __attribute__ ((packed));
+} __packed;
#define H4P_ALIVE_REQ 0x55
#define H4P_ALIVE_RESP 0xcc
struct hci_h4p_alive_hdr {
__u8 dlen;
-} __attribute__ ((packed));
+} __packed;
#define H4P_ALIVE_HDR_SIZE 1
struct hci_h4p_alive_pkt {
__u8 mid;
__u8 unused;
-} __attribute__ ((packed));
+} __packed;
#define MAX_BAUD_RATE 921600
#define BC4_MAX_BAUD_RATE 3692300
@@ -188,7 +188,7 @@ struct hci_fw_event {
struct hci_event_hdr hev;
struct hci_ev_cmd_complete cmd;
u8 status;
-} __attribute__ ((packed));
+} __packed;
int hci_h4p_send_alive_packet(struct hci_h4p_info *info);