]> git.karo-electronics.de Git - linux-beck.git/commit
mei: always initialize the callback with the intended operation type
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 10 Feb 2015 08:39:43 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:37:00 +0000 (19:37 -0800)
commitbca67d681c4864b74fa5fae9ee47e562d1e272b1
tree1538db82496b44cc2f7343714ed4a949311f1815
parent5db7514d9333c920791538c850cfb9dbd19025f7
mei: always initialize the callback with the intended operation type

We set the operation type at initialization time as each cb is used only
for a single type of operation

As a byproduct we add a convenient wrapper for allocating cb with
the data buffer.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/amthif.c
drivers/misc/mei/bus.c
drivers/misc/mei/client.c
drivers/misc/mei/client.h
drivers/misc/mei/hbm.c
drivers/misc/mei/main.c