mei: revamp me client search function
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 23 Jul 2012 11:05:39 +0000 (14:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 16:40:28 +0000 (09:40 -0700)
commit07b509b7943e5594f3f228e5b62a49cf6a033709
tree6271fdff08b54ab605cbc666cdcc054d41d3e44a
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
mei: revamp me client search function

me client search functions returns index
into me_client array according me client id
or me client uuid.

1. Add common prefix for the functions mei_me_cl_<>
2. create new function mei_me_cl_by_id that wraps open
 coded loops scattered over the code
3. rename mei_find_me_client_index to  mei_me_cl_by_uuid
4. rename mei_find_me_client_update_filext  to
 mei_me_cl_update_filext and updates its parameter names

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/init.c
drivers/misc/mei/iorw.c
drivers/misc/mei/main.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/wd.c