aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2015-02-10 03:39:40 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-01 22:37:00 -0500
commit8660172e1d6528be02eba78516ff8282e694bb26 (patch)
treeffdfd598e38919f6b71fa613887b31c6c978286d /drivers/misc/mei/main.c
parentc54bf3ab7536e062b507b625bfd2befb9b2cb841 (diff)
mei: iamthif: use client write functions
Reduce code duplication in amthif code by reusing regular client write functions. Add completed flag to cb so amthif client can add rx credits on write completion Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index cbdbf4af2bf7..9d1a8cba81c9 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -401,7 +401,7 @@ static ssize_t mei_write(struct file *file, const char __user *ubuf,
401 } 401 }
402 402
403 if (cl == &dev->iamthif_cl) { 403 if (cl == &dev->iamthif_cl) {
404 rets = mei_amthif_write(dev, write_cb); 404 rets = mei_amthif_write(cl, write_cb);
405 405
406 if (rets) { 406 if (rets) {
407 dev_err(dev->dev, 407 dev_err(dev->dev,