on globals. The resulting code is slightly more compact too (both source
and compiled binary).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3213 7894878c-1315-0410-8ee3-d5d059ff63e0
from Linux 2.6:
* Fan inputs 4, 5, 6 and 7 can be disabled.
* Simplify voltage reading code.
* Simplify and inline w83792d_{read,write}_value.
* Drop unused lock.
* Make needlessly global functions static.
* Fix the bug where tolerance 2 and tolerance 3 can not be set.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3209 7894878c-1315-0410-8ee3-d5d059ff63e0
"(...) I found what I think is a bug in the it87_fan_div setting code.
(...) What was happening was that the check to make sure the third fan's
divisor was either 2 or 8 was using the wrong member of the it87 data
structure. This was causing the if to never fail and thus always force
the divisor to 2."
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3200 7894878c-1315-0410-8ee3-d5d059ff63e0
in line with the new 2.6 driver. The most important changes are temp
inputs renumbering, and conversion formulas changes, because part of the
conversions are now done by the driver as required by the interface
standard.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3194 7894878c-1315-0410-8ee3-d5d059ff63e0
VRM for all drivers. Same was done it Linux 2.6 some times ago.
Also comment out all "set vrm" lines in sensors.conf.eg, as Linux 2.6
now accurately deduces the VRM from the CPU model.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3190 7894878c-1315-0410-8ee3-d5d059ff63e0
* Fix in4 reading on W83627THF and W83637HF.
* Use the right registers for alarms.
* Preserve fan min when setting fan div.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3184 7894878c-1315-0410-8ee3-d5d059ff63e0
Add PEC support to the lm90 driver. Only the ADM1032 chip supports it,
and in a rather tricky way, which is why this patch comes with
documentation reinforcements. At least, this demonstrates that the new
PEC support logic in i2c-core can properly deal with chips with partial
PEC support.
As enabling PEC causes a significant performance drop, it can be
disabled through a procfs file (unsurprisingly named "pec").
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3181 7894878c-1315-0410-8ee3-d5d059ff63e0
Preparatory patch to add PEC support to the lm90 driver. We need a
centralized function to read register values, where the PEC code will
be later inserted. A positive side effect is that read errors are now
handled properly.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3179 7894878c-1315-0410-8ee3-d5d059ff63e0
The new SMBus PEC implementation doesn't support PEC emulation on
non-PEC non-I2C SMBus masters, so we can drop all related code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3177 7894878c-1315-0410-8ee3-d5d059ff63e0
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to
check for PEC support of i2c bus drivers on individual SMBus
transactions, and i2c bus drivers are not supposed to advertise them.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3176 7894878c-1315-0410-8ee3-d5d059ff63e0
* The IT8705F and SiS950 have no SMBus interface.
* Fix a parenthesis misplacement.
* it87_detect should be static.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3154 7894878c-1315-0410-8ee3-d5d059ff63e0
Clean up name string usage in 11 i2c bus drivers:
* Use the pci_driver name for requesting the I/O region rather than
redefining a new string.
* Do not initialize the i2c_adapter name to "unset".
This should save a few data bytes here and there.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3149 7894878c-1315-0410-8ee3-d5d059ff63e0
some months ago but we omitted to do the same in i2c-dev.h.
Drop I2C_FUNC_SMBUS_EMUL, it is meant as a convenient shortcut for plain
I2C bus drivers and has no use in user-space.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3107 7894878c-1315-0410-8ee3-d5d059ff63e0