diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-11-18 08:13:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 15:43:58 -0500 |
commit | 24c656e55f3985b6f5c0e2264243f7076f376193 (patch) | |
tree | 11d7a03b65c9ad448f230f748f0bc19b6627dced /drivers/misc/mei/mei_dev.h | |
parent | ea3b5fb710c6d0b61f4bfbbc48b34b99b9c89bae (diff) |
mei: streamline amthif write complete function
Rename the function mei_amthif_irq_process_completed
to mei_amthif_irq_write_complete
Remove cl from the parameter list as it
can be extracted from cb block.
Extract the common flow from if statements
and document the logic properly
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/mei_dev.h')
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 2a38e95e5de0..17d00aae74e6 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -407,10 +407,8 @@ void mei_amthif_run_next_cmd(struct mei_device *dev); | |||
407 | int mei_amthif_read_message(struct mei_cl_cb *complete_list, | 407 | int mei_amthif_read_message(struct mei_cl_cb *complete_list, |
408 | struct mei_device *dev, struct mei_msg_hdr *mei_hdr); | 408 | struct mei_device *dev, struct mei_msg_hdr *mei_hdr); |
409 | 409 | ||
410 | int mei_amthif_irq_process_completed(struct mei_device *dev, s32 *slots, | 410 | int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, |
411 | struct mei_cl_cb *cb_pos, | 411 | struct mei_cl_cb *cb, struct mei_cl_cb *cmpl_list); |
412 | struct mei_cl *cl, | ||
413 | struct mei_cl_cb *cmpl_list); | ||
414 | 412 | ||
415 | void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb); | 413 | void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb); |
416 | int mei_amthif_irq_read_message(struct mei_cl_cb *complete_list, | 414 | int mei_amthif_irq_read_message(struct mei_cl_cb *complete_list, |