aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/mei_dev.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-11-11 10:37:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 18:34:18 -0500
commitdb3ed43185c6f5d4fd6c5ac963347b849540996e (patch)
tree46690fbfd58c7d2da479865c7061f6c50b8d6d64 /drivers/misc/mei/mei_dev.h
parente773efc405026bb8540c84bf45420bd66d5b34a7 (diff)
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/mei_dev.h')
-rw-r--r--drivers/misc/mei/mei_dev.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h
index ce246b0fb2d6..da0c1f5eed9c 100644
--- a/drivers/misc/mei/mei_dev.h
+++ b/drivers/misc/mei/mei_dev.h
@@ -143,10 +143,17 @@ struct mei_message_data {
143}; 143};
144 144
145 145
146struct mei_cl;
147
148/*
149 * struct mei_cl_cb - file operation callback structure
150 *
151 * @cl - file client who is running this operation
152 */
146struct mei_cl_cb { 153struct mei_cl_cb {
147 struct list_head list; 154 struct list_head list;
155 struct mei_cl *cl;
148 enum mei_cb_major_types major_file_operations; 156 enum mei_cb_major_types major_file_operations;
149 void *file_private;
150 struct mei_message_data request_buffer; 157 struct mei_message_data request_buffer;
151 struct mei_message_data response_buffer; 158 struct mei_message_data response_buffer;
152 unsigned long buf_idx; 159 unsigned long buf_idx;