summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorNikolaus Schulz <mail@microschulz.de>2012-02-28 16:15:54 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-02 12:02:23 -0800
commit15d1ad0cc9d2d3f549afddbcdbc9c3637f0d1331 (patch)
treeba695785e271b487c591b86c518f32449258497a /security
parentb17d6561acc16265b65b1e0d27b649829b61a7e3 (diff)
downloadop-kernel-dev-15d1ad0cc9d2d3f549afddbcdbc9c3637f0d1331.zip
op-kernel-dev-15d1ad0cc9d2d3f549afddbcdbc9c3637f0d1331.tar.gz
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 <mail@microschulz.de> [guenter.roeck@ericsson.com: Minor formatting cleanup] Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud