diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 24534ff1937e3d364924f08b1a196cf2d6b4219f..271c2408672929ad1355feff4cf793374032b0f9 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -133,6 +133,22 @@ void mei_hbm_reset(struct mei_device *dev) mei_hbm_idle(dev); } +/** + * mei_hbm_hdr - construct hbm header + * + * @hdr: hbm header + * @length: payload length + */ + +static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length) +{ + hdr->host_addr = 0; + hdr->me_addr = 0; + hdr->length = length; + hdr->msg_complete = 1; + hdr->reserved = 0; +} + /** * mei_hbm_cl_hdr - construct client hbm header * diff --git a/drivers/misc/mei/hbm.h b/drivers/misc/mei/hbm.h index efcb0d45bbe6636bb9219cd4456f84c2c052edb5..b7cd3d857fd59d691f6b95a7fd2fac61924b2a97 100644 --- a/drivers/misc/mei/hbm.h +++ b/drivers/misc/mei/hbm.h @@ -44,15 +44,6 @@ const char *mei_hbm_state_str(enum mei_hbm_state state); int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr); -static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length) -{ - hdr->host_addr = 0; - hdr->me_addr = 0; - hdr->length = length; - hdr->msg_complete = 1; - hdr->reserved = 0; -} - void mei_hbm_idle(struct mei_device *dev); void mei_hbm_reset(struct mei_device *dev); int mei_hbm_start_req(struct mei_device *dev);