Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81ca405a authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Marcel Holtmann
Browse files

Bluetooth: Use __packed annotation for drivers



Use the __packed annotation instead of the __attribute__((packed)).

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 66c853cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+2 −2
Original line number Diff line number Diff line
@@ -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 */

+1 −1
Original line number Diff line number Diff line
@@ -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 */

+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ enum hcill_states_e {

struct hcill_cmd {
	u8 cmd;
} __attribute__((packed));
} __packed;

struct ll_struct {
	unsigned long rx_state;