Bluetooth: Reorganize buffer variable for smaller size
Reorganize and compress some of the buffer variable to achieve smaller struct size. Change-Id: I1ce711c22844470403b085b0f13e77f762f25262 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
a79c26d9aa
commit
1004e8bf19
@ -76,15 +76,13 @@ struct bt_buf {
|
||||
struct bt_buf_acl_data acl;
|
||||
};
|
||||
|
||||
/* Reference count */
|
||||
uint8_t ref;
|
||||
|
||||
/* Type of data contained in the buffer */
|
||||
uint8_t type;
|
||||
|
||||
/* Buffer data variables */
|
||||
uint8_t len;
|
||||
uint8_t *data;
|
||||
uint8_t len;
|
||||
|
||||
uint8_t ref:5, /* Reference count */
|
||||
type:3; /* Type of data contained in the buffer */
|
||||
|
||||
uint8_t buf[BT_BUF_MAX_DATA];
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user