]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Fix temperature limit register access
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 22 Mar 2011 04:31:00 +0000 (21:31 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 26 Mar 2011 16:53:56 +0000 (09:53 -0700)
commit6a2fd459f78f3c00fe42df2ebdc475f78dc52e28
tree8809f96a42cbb1c5fe43f7bfc2d23c25aaf2bbed
parentb0775d884c4792a6ae8ac0e695a41188e32ae24f
hwmon: (pmbus) Fix temperature limit register access

Commit b2611b8 added auto-update to temperature limit registers.
Unfortunately, the update flag is also used to determine if an attribute
is writable, which results in read-only temperature limit registers.
To fix the problem, pass 'readonly' as separate flag to the function used
to add sensor attributes.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/pmbus_core.c