mei: add mei_msg_hdr_init wrapper.
Wrap the mei header boilerplate initialization code in mei_msg_hdr_init function. On the way remove 'completed' field from mei_cl_cb structure as this information is already included in the header and is local to particular fragment. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
8c8d964ce9
commit
a1c4d08b6b
@@ -175,7 +175,6 @@ struct mei_cl;
|
||||
* @status: io status of the cb
|
||||
* @internal: communication between driver and FW flag
|
||||
* @blocking: transmission blocking mode
|
||||
* @completed: the transfer or reception has completed
|
||||
*/
|
||||
struct mei_cl_cb {
|
||||
struct list_head list;
|
||||
@@ -187,7 +186,6 @@ struct mei_cl_cb {
|
||||
int status;
|
||||
u32 internal:1;
|
||||
u32 blocking:1;
|
||||
u32 completed:1;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user