mei: revamp me clients list handling
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 10 Feb 2015 08:39:31 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:36:59 +0000 (19:36 -0800)
commitb7d885145538ddedb1ae23b782ab7c7c0a856e9f
tree9470b5807362a068e85487a429fb3b3f543af53e
parente9395e3f8952110bda60b54ad03ec52c6e9c7dbd
mei: revamp me clients list handling

1. Use rw lock to access the me_clients list

2. Reuse already defined find functions also when
removing particular me client

3. Add wrappers for addition  and deletion

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