diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-02-10 09:39:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-02 04:37:00 +0100 |
commit | 03b8d3419fdfc02d1984a0db51c8b74426e12605 (patch) | |
tree | 740b43b278842ad3d88c47e1b707616e4c2c4a1a /drivers/misc/mei/client.h | |
parent | mei: always initialize the callback with the intended operation type (diff) | |
download | linux-03b8d3419fdfc02d1984a0db51c8b74426e12605.tar.xz linux-03b8d3419fdfc02d1984a0db51c8b74426e12605.zip |
mei: add mei_cl_alloc_linked function
Add convenient wrapper mei_cl_alloc_linked
to simplify error handling
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, 2 insertions, 0 deletions
diff --git a/drivers/misc/mei/client.h b/drivers/misc/mei/client.h index f7d0285b5f57..c3d0e200a642 100644 --- a/drivers/misc/mei/client.h +++ b/drivers/misc/mei/client.h @@ -75,6 +75,8 @@ void mei_cl_init(struct mei_cl *cl, struct mei_device *dev); int mei_cl_link(struct mei_cl *cl, int id); int mei_cl_unlink(struct mei_cl *cl); +struct mei_cl *mei_cl_alloc_linked(struct mei_device *dev, int id); + int mei_cl_flush_queues(struct mei_cl *cl); struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl); |