aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/interrupt.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-11-18 15:13:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 12:43:58 -0800
commit24c656e55f3985b6f5c0e2264243f7076f376193 (patch)
tree11d7a03b65c9ad448f230f748f0bc19b6627dced /drivers/misc/mei/interrupt.c
parentmei: streamline write complete flow function (diff)
downloadlinux-dev-24c656e55f3985b6f5c0e2264243f7076f376193.tar.xz
linux-dev-24c656e55f3985b6f5c0e2264243f7076f376193.zip
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/interrupt.c')
-rw-r--r--drivers/misc/mei/interrupt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 85e272258ff1..d30db38d6188 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -1046,8 +1046,8 @@ static int mei_irq_thread_write_handler(struct mei_cl_cb *cmpl_list,
cl->host_client_id);
continue;
}
- ret = mei_amthif_irq_process_completed(dev, slots, pos,
- cl, cmpl_list);
+ ret = mei_amthif_irq_write_complete(dev, slots,
+ pos, cmpl_list);
if (ret)
return ret;