mei: squash single_recv_buf into one bit in client properties
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sun, 23 Dec 2018 18:17:51 +0000 (20:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 14:48:39 +0000 (15:48 +0100)
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.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw.h

index 2b7f7677f8cc3c0ba2d212f3cf5cec2773cda5dd..b7d2487b84094656641e42260ea8363d7aaf0cbd 100644 (file)
@@ -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;