Skip to contentSkip to conversation

mei: squash single_recv_buf into one bit in client properties

char-misc-next Tomas Winkler 1 participant 1 message Dec 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Alexander Usyskin <[email protected]>

single_recv_buf member of struct mei_client_properties has a boolean value and can be represented in on bit, to free other 7 bits for another usage.

---
 drivers/misc/mei/hw.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/misc/mei/hw.h +2 -1
index 2b7f7677f8cc..b7d2487b8409 100644
@@ -311,7 +311,8 @@ struct mei_client_properties {
 	u8 protocol_version;
 	u8 max_number_of_connections;
 	u8 fixed_address;
-	u8 single_recv_buf;
+	u8 single_recv_buf:1;
+	u8 reserved:7;
 	u32 max_msg_length;
 } __packed;
 
Signature · 1 line
2.20.1