From: Jean Delvare Date: Wed, 14 Feb 2007 20:15:03 +0000 (+0100) Subject: hwmon: Simplify the locking model of two drivers X-Git-Tag: v2.6.21-rc1~65^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f999aa726ded3fd10d7619945e8b7d7e39833b3;p=pandora-kernel.git hwmon: Simplify the locking model of two drivers Many hardware monitoring drivers use two different mutexes, one to protect their per-device data structure, and one to protect the access to the device registers. These mutexes are essentially redundant, as the drivers are transfering values between the device registers and the data cache, so they almost always end up holding both mutexes at the same time. Using a single mutex will make the code more simple and faster. I am changing only two of the affected drivers here, the authors of the other affected drivers are welcome to submit similar patches if they want. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed