From: Nikolaus Schulz Date: Tue, 28 Feb 2012 21:15:54 +0000 (-0500) Subject: hwmon: (f75375s) Catch some attempts to write to r/o registers X-Git-Tag: v3.3-rc6~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d1ad0cc9d2d3f549afddbcdbc9c3637f0d1331;p=pandora-kernel.git hwmon: (f75375s) Catch some attempts to write to r/o registers It makes no sense to attempt to manually configure the fan in auto mode, or set the duty cycle directly in closed loop mode. The corresponding registers are then read-only. If the user tries it nonetheless, error out with EINVAL instead of silently doing nothing. Signed-off-by: Nikolaus Schulz [guenter.roeck@ericsson.com: Minor formatting cleanup] Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed