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.38-rc6~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6315da6a1657a49e03970a4084dc3d1958ad70;p=pandora-kernel.git hwmon: (jc42) do not allow writing to locked registers 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 Cc: stable@kernel.org Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed