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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
0d7614f09c
commit
07b509b794
@@ -69,7 +69,7 @@ int mei_wd_host_init(struct mei_device *dev)
|
||||
dev->wd_timeout = AMT_WD_DEFAULT_TIMEOUT;
|
||||
|
||||
/* find ME WD client */
|
||||
mei_find_me_client_update_filext(dev, &dev->wd_cl,
|
||||
mei_me_cl_update_filext(dev, &dev->wd_cl,
|
||||
&mei_wd_guid, MEI_WD_HOST_CLIENT_ID);
|
||||
|
||||
dev_dbg(&dev->pdev->dev, "wd: check client\n");
|
||||
|
Reference in New Issue
Block a user