diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2017-01-27 15:32:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-31 11:07:43 +0100 |
commit | f046192d98c9a929c3eefdd65b885000d341d969 (patch) | |
tree | 083f74738b2dc1b1e5668d79e4d9aa604fe38bc6 /drivers/misc/mei/client.h | |
parent | mei: replace callback structures used as list head by list_head (diff) | |
download | linux-f046192d98c9a929c3eefdd65b885000d341d969.tar.xz linux-f046192d98c9a929c3eefdd65b885000d341d969.zip |
mei: revamp io list cleanup function.
Specify in function names by which object is the io list filtered:
cl for a client and fp for file descriptor.
In that course a code duplication is resolved by dropping
mei_cl_read_cb_flush and mei_clear_list and using
mei_io_list_free_fp function.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/client.h')
-rw-r--r-- | drivers/misc/mei/client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/client.h b/drivers/misc/mei/client.h index f48cfa026268..545ae319ba90 100644 --- a/drivers/misc/mei/client.h +++ b/drivers/misc/mei/client.h @@ -83,6 +83,7 @@ static inline u8 mei_me_cl_ver(const struct mei_me_client *me_cl) * MEI IO Functions */ void mei_io_cb_free(struct mei_cl_cb *priv_cb); +void mei_io_list_free_fp(struct list_head *head, const struct file *fp); /* * MEI Host Client Functions @@ -99,7 +100,6 @@ struct mei_cl *mei_cl_alloc_linked(struct mei_device *dev); struct mei_cl_cb *mei_cl_read_cb(const struct mei_cl *cl, const struct file *fp); -void mei_cl_read_cb_flush(const struct mei_cl *cl, const struct file *fp); struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length, enum mei_cb_file_ops type, const struct file *fp); |