diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-04-19 14:16:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-19 14:22:55 -0400 |
commit | 5ceb46e25d727f198c1efe281d19653962a51931 (patch) | |
tree | ae03df675dde1cf01f8f7c9c6092f6c5099bf5f1 /drivers/misc | |
parent | 9b0d5efc421ac79d9a6d97c681eff93288093784 (diff) |
mei: revamp mei_amthif_irq_read_message
Rename the function to mei_amthif_irq_read_msg
and change parameters order
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/amthif.c | 10 | ||||
-rw-r--r-- | drivers/misc/mei/interrupt.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 9 |
3 files changed, 15 insertions, 6 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 9a5e8c72628b..31a6212cb8b1 100644 --- a/drivers/misc/mei/amthif.c +++ b/drivers/misc/mei/amthif.c | |||
@@ -505,14 +505,15 @@ int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, | |||
505 | * mei_amthif_irq_read_message - read routine after ISR to | 505 | * mei_amthif_irq_read_message - read routine after ISR to |
506 | * handle the read amthif message | 506 | * handle the read amthif message |
507 | * | 507 | * |
508 | * @complete_list: An instance of our list structure | ||
509 | * @dev: the device structure | 508 | * @dev: the device structure |
510 | * @mei_hdr: header of amthif message | 509 | * @mei_hdr: header of amthif message |
510 | * @complete_list: An instance of our list structure | ||
511 | * | 511 | * |
512 | * returns 0 on success, <0 on failure. | 512 | * returns 0 on success, <0 on failure. |
513 | */ | 513 | */ |
514 | int mei_amthif_irq_read_message(struct mei_cl_cb *complete_list, | 514 | int mei_amthif_irq_read_msg(struct mei_device *dev, |
515 | struct mei_device *dev, struct mei_msg_hdr *mei_hdr) | 515 | struct mei_msg_hdr *mei_hdr, |
516 | struct mei_cl_cb *complete_list) | ||
516 | { | 517 | { |
517 | struct mei_cl_cb *cb; | 518 | struct mei_cl_cb *cb; |
518 | unsigned char *buffer; | 519 | unsigned char *buffer; |
@@ -530,8 +531,7 @@ int mei_amthif_irq_read_message(struct mei_cl_cb *complete_list, | |||
530 | if (!mei_hdr->msg_complete) | 531 | if (!mei_hdr->msg_complete) |
531 | return 0; | 532 | return 0; |
532 | 533 | ||
533 | dev_dbg(&dev->pdev->dev, | 534 | dev_dbg(&dev->pdev->dev, "amthif_message_buffer_index =%d\n", |
534 | "amthif_message_buffer_index =%d\n", | ||
535 | mei_hdr->length); | 535 | mei_hdr->length); |
536 | 536 | ||
537 | dev_dbg(&dev->pdev->dev, "completed amthif read.\n "); | 537 | dev_dbg(&dev->pdev->dev, "completed amthif read.\n "); |
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index c1cc462cce0e..8e4db3d77e07 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -418,7 +418,7 @@ int mei_irq_read_handler(struct mei_device *dev, | |||
418 | 418 | ||
419 | dev_dbg(&dev->pdev->dev, MEI_HDR_FMT, MEI_HDR_PRM(mei_hdr)); | 419 | dev_dbg(&dev->pdev->dev, MEI_HDR_FMT, MEI_HDR_PRM(mei_hdr)); |
420 | 420 | ||
421 | ret = mei_amthif_irq_read_message(cmpl_list, dev, mei_hdr); | 421 | ret = mei_amthif_irq_read_msg(dev, mei_hdr, cmpl_list); |
422 | if (ret) | 422 | if (ret) |
423 | goto end; | 423 | goto end; |
424 | } else { | 424 | } else { |
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 56dee56ab9cc..c91c492063aa 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -502,6 +502,15 @@ struct mei_cl_cb *mei_amthif_find_read_list_entry(struct mei_device *dev, | |||
502 | 502 | ||
503 | void mei_amthif_run_next_cmd(struct mei_device *dev); | 503 | void mei_amthif_run_next_cmd(struct mei_device *dev); |
504 | 504 | ||
505 | int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, | ||
506 | struct mei_cl_cb *cb, struct mei_cl_cb *cmpl_list); | ||
507 | |||
508 | void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb); | ||
509 | int mei_amthif_irq_read_msg(struct mei_device *dev, | ||
510 | struct mei_msg_hdr *mei_hdr, | ||
511 | struct mei_cl_cb *complete_list); | ||
512 | int mei_amthif_irq_read(struct mei_device *dev, s32 *slots); | ||
513 | |||
505 | /* | 514 | /* |
506 | * NFC functions | 515 | * NFC functions |
507 | */ | 516 | */ |