]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mei: revamp mei_data2slots
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 11 Mar 2013 16:27:02 +0000 (18:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 18:10:48 +0000 (11:10 -0700)
commitc8c8d080ed94cea6757f2d781b6e360a74b256fd
tree5fa9937912d66e7d6633c3109fdce1b344c8728f
parent388f7bd24d2ffc945ad08be3a592672c1e32156e
mei: revamp mei_data2slots

1. Move the mei_data2slots to mei_dev.h as it will be used
by the all supported HW.
2. Change return value from u8 to u32 to catch possible overflows
3. Eliminate computing the slots number twice in the same function

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/hw-me.c
drivers/misc/mei/hw-me.h
drivers/misc/mei/interrupt.c
drivers/misc/mei/mei_dev.h