From: Clemens Ladisch Date: Wed, 16 Feb 2011 13:02:38 +0000 (-0500) Subject: hwmon: (jc42) do not allow writing to locked registers X-Git-Tag: v2.6.37.2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53b9575ce4ac028c83c4b3ed944e8941cf984257;p=pandora-kernel.git hwmon: (jc42) do not allow writing to locked registers commit 2c6315da6a1657a49e03970a4084dc3d1958ad70 upstream. On systems where the temperature sensor is actually used, the BIOS is likely to have locked the alarm registers. In that case, all writes through the corresponding sysfs files would be silently ignored. To prevent this, detect the locks and make the affected sysfs files read-only. Signed-off-by: Clemens Ladisch Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed