aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/interrupt.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-01-08 16:07:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-08 19:40:44 -0500
commit90e0b5f18569bdd03c5ddd1d8c99946f42af77b8 (patch)
tree2d70ede445345397032a92fe9f5e24eb8d3c4981 /drivers/misc/mei/interrupt.c
parent9ca9050b3df690d9d44e39424ab2a531120af936 (diff)
mei: fix client functions names
Use common prefix for function names: mei_cl_ - for host clients mei_me_ - for me clients mei_io_ - for io callback functions Because mei_cl holds mei_device back pointer we can also drop the dev argument from the client functions add client.h header to export the clients API 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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 2495e35ccb27..0a141afcea89 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -26,6 +26,7 @@
26#include "mei_dev.h" 26#include "mei_dev.h"
27#include "hbm.h" 27#include "hbm.h"
28#include "interface.h" 28#include "interface.h"
29#include "client.h"
29 30
30 31
31/** 32/**
@@ -297,7 +298,7 @@ static int mei_irq_thread_write_complete(struct mei_device *dev, s32 *slots,
297 return -ENODEV; 298 return -ENODEV;
298 } 299 }
299 300
300 if (mei_flow_ctrl_reduce(dev, cl)) 301 if (mei_cl_flow_ctrl_reduce(cl))
301 return -ENODEV; 302 return -ENODEV;
302 303
303 cl->status = 0; 304 cl->status = 0;
@@ -478,10 +479,10 @@ static int mei_irq_thread_write_handler(struct mei_device *dev,
478 } 479 }
479 if (dev->dev_state == MEI_DEV_ENABLED) { 480 if (dev->dev_state == MEI_DEV_ENABLED) {
480 if (dev->wd_pending && 481 if (dev->wd_pending &&
481 mei_flow_ctrl_creds(dev, &dev->wd_cl) > 0) { 482 mei_cl_flow_ctrl_creds(&dev->wd_cl) > 0) {
482 if (mei_wd_send(dev)) 483 if (mei_wd_send(dev))
483 dev_dbg(&dev->pdev->dev, "wd send failed.\n"); 484 dev_dbg(&dev->pdev->dev, "wd send failed.\n");
484 else if (mei_flow_ctrl_reduce(dev, &dev->wd_cl)) 485 else if (mei_cl_flow_ctrl_reduce(&dev->wd_cl))
485 return -ENODEV; 486 return -ENODEV;
486 487
487 dev->wd_pending = false; 488 dev->wd_pending = false;
@@ -520,7 +521,7 @@ static int mei_irq_thread_write_handler(struct mei_device *dev,
520 break; 521 break;
521 case MEI_FOP_IOCTL: 522 case MEI_FOP_IOCTL:
522 /* connect message */ 523 /* connect message */
523 if (mei_other_client_is_connecting(dev, cl)) 524 if (mei_cl_is_other_connecting(cl))
524 continue; 525 continue;
525 ret = _mei_irq_thread_ioctl(dev, &slots, pos, 526 ret = _mei_irq_thread_ioctl(dev, &slots, pos,
526 cl, cmpl_list); 527 cl, cmpl_list);
@@ -540,7 +541,7 @@ static int mei_irq_thread_write_handler(struct mei_device *dev,
540 cl = pos->cl; 541 cl = pos->cl;
541 if (cl == NULL) 542 if (cl == NULL)
542 continue; 543 continue;
543 if (mei_flow_ctrl_creds(dev, cl) <= 0) { 544 if (mei_cl_flow_ctrl_creds(cl) <= 0) {
544 dev_dbg(&dev->pdev->dev, 545 dev_dbg(&dev->pdev->dev,
545 "No flow control credentials for client %d, not sending.\n", 546 "No flow control credentials for client %d, not sending.\n",
546 cl->host_client_id); 547 cl->host_client_id);