mei: move mei_hbm_hdr function from hbm.h the hbm.c
mei_hbm_hder helper function is only used in hbm.c so there is no need to define it in a header file 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
2628118b60
commit
2190fe2a3f
@@ -133,6 +133,22 @@ void mei_hbm_reset(struct mei_device *dev)
|
|||||||
mei_hbm_idle(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
|
* mei_hbm_cl_hdr - construct client hbm header
|
||||||
*
|
*
|
||||||
|
@@ -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);
|
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_idle(struct mei_device *dev);
|
||||||
void mei_hbm_reset(struct mei_device *dev);
|
void mei_hbm_reset(struct mei_device *dev);
|
||||||
int mei_hbm_start_req(struct mei_device *dev);
|
int mei_hbm_start_req(struct mei_device *dev);
|
||||||
|
Reference in New Issue
Block a user