summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/iorw.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-11-11 16:37:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-16 00:34:18 +0100
commitdb3ed43185c6f5d4fd6c5ac963347b849540996e (patch)
tree46690fbfd58c7d2da479865c7061f6c50b8d6d64 /drivers/misc/mei/iorw.c
parentmei: amthif: prefix cb list with amthif (diff)
downloadlinux-db3ed43185c6f5d4fd6c5ac963347b849540996e.tar.xz
linux-db3ed43185c6f5d4fd6c5ac963347b849540996e.zip
mei: use type struct mei_cl *cl instead of void in struct mei_cb
We can use correct type 'struct mei_cl' instead of 'void *' for file_private in the struct mei_cb as there is no other type assigned to this member of the structure We rename the member from file_private to cl Remove about 10 lines of declarations of temporary variables used for type casting Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/iorw.c')
-rw-r--r--drivers/misc/mei/iorw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/iorw.c b/drivers/misc/mei/iorw.c
index a1d9ba1a06e7..cc53ce766e88 100644
--- a/drivers/misc/mei/iorw.c
+++ b/drivers/misc/mei/iorw.c
@@ -71,7 +71,7 @@ struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp)
mei_io_list_init(cb);
cb->file_object = fp;
- cb->file_private = cl;
+ cb->cl = cl;
cb->buf_idx = 0;
return cb;
}