Commit fde3d28d authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Greg Kroah-Hartman

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: default avatarHimangi Saraogi <himangi774@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2459201
...@@ -108,11 +108,11 @@ struct hci_h4p_info { ...@@ -108,11 +108,11 @@ struct hci_h4p_info {
struct hci_h4p_radio_hdr { struct hci_h4p_radio_hdr {
__u8 evt; __u8 evt;
__u8 dlen; __u8 dlen;
} __attribute__ ((packed)); } __packed;
struct hci_h4p_neg_hdr { struct hci_h4p_neg_hdr {
__u8 dlen; __u8 dlen;
} __attribute__ ((packed)); } __packed;
#define H4P_NEG_HDR_SIZE 1 #define H4P_NEG_HDR_SIZE 1
#define H4P_NEG_REQ 0x00 #define H4P_NEG_REQ 0x00
...@@ -133,7 +133,7 @@ struct hci_h4p_neg_cmd { ...@@ -133,7 +133,7 @@ struct hci_h4p_neg_cmd {
__u8 proto; __u8 proto;
__u16 sys_clk; __u16 sys_clk;
__u16 unused2; __u16 unused2;
} __attribute__ ((packed)); } __packed;
struct hci_h4p_neg_evt { struct hci_h4p_neg_evt {
__u8 ack; __u8 ack;
...@@ -144,20 +144,20 @@ struct hci_h4p_neg_evt { ...@@ -144,20 +144,20 @@ struct hci_h4p_neg_evt {
__u16 unused2; __u16 unused2;
__u8 man_id; __u8 man_id;
__u8 ver_id; __u8 ver_id;
} __attribute__ ((packed)); } __packed;
#define H4P_ALIVE_REQ 0x55 #define H4P_ALIVE_REQ 0x55
#define H4P_ALIVE_RESP 0xcc #define H4P_ALIVE_RESP 0xcc
struct hci_h4p_alive_hdr { struct hci_h4p_alive_hdr {
__u8 dlen; __u8 dlen;
} __attribute__ ((packed)); } __packed;
#define H4P_ALIVE_HDR_SIZE 1 #define H4P_ALIVE_HDR_SIZE 1
struct hci_h4p_alive_pkt { struct hci_h4p_alive_pkt {
__u8 mid; __u8 mid;
__u8 unused; __u8 unused;
} __attribute__ ((packed)); } __packed;
#define MAX_BAUD_RATE 921600 #define MAX_BAUD_RATE 921600
#define BC4_MAX_BAUD_RATE 3692300 #define BC4_MAX_BAUD_RATE 3692300
...@@ -188,7 +188,7 @@ struct hci_fw_event { ...@@ -188,7 +188,7 @@ struct hci_fw_event {
struct hci_event_hdr hev; struct hci_event_hdr hev;
struct hci_ev_cmd_complete cmd; struct hci_ev_cmd_complete cmd;
u8 status; u8 status;
} __attribute__ ((packed)); } __packed;
int hci_h4p_send_alive_packet(struct hci_h4p_info *info); int hci_h4p_send_alive_packet(struct hci_h4p_info *info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment