diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-11-11 13:26:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-27 11:11:29 -0800 |
commit | 10ee90743e99fb06a0881a35731263c1845275dd (patch) | |
tree | 5f5eb3a77ee533b2880e599fe229789ecd5d8f7a /drivers/misc/mei/mei_dev.h | |
parent | 0f1d4ce5d0d09de5db92df7f51cdf7163bbb61f9 (diff) | |
download | lwn-10ee90743e99fb06a0881a35731263c1845275dd.tar.gz lwn-10ee90743e99fb06a0881a35731263c1845275dd.zip |
mei: cleanup mei_irq_read_handler
1. Simplify function flow
2. Display errors in error or warnings level instead of debug.
3. Remove excessive debug messages
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 6f577bf5dc9d..4a7ee815fab1 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h @@ -456,6 +456,16 @@ static inline u32 mei_data2slots(size_t length) return DIV_ROUND_UP(sizeof(struct mei_msg_hdr) + length, 4); } +/** + * mei_slots2data- get data in slots - bytes from slots + * @slots - number of available slots + * returns - number of bytes in slots + */ +static inline u32 mei_slots2data(int slots) +{ + return slots * 4; +} + /* * mei init function prototypes */ |