Commit Graph
1306 Commits
Author SHA1 Message Date
Jean Delvare f89d47e4f2 Use inline functions instead of macros. Macros evaluating their
arguments more than once are evil. Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5372 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 19:24:54 +00:00
Jean Delvare a8acdd0d88 The LM78 detection is relatively weak, and sometimes recent Winbond
chips can be misdetected as an LM78. We have had repeated reports of
this happening. (Backport from Linux 2.6.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5371 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 16:25:11 +00:00
Jean Delvare 8e413501da Degrade the "Unsupported chip" message from info to debug level.
There's nothing wrong with this, so no need to bother the user.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5370 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 15:29:13 +00:00
Jean Delvare 85ac078383 Update lm90 datasheet links. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5369 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 14:46:57 +00:00
Jean Delvare c374f6237c Add support for the VIA VX800/VX820 SMBus. Backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5368 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 14:16:51 +00:00
Jean Delvare a36de90a61 Drop I2C_FUNC_SMBUS_*I2C_BLOCK_2 defines, as was just done in the
Linux 2.6 kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5362 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-19 09:50:16 +00:00
Jean Delvare 20c2b6de11 Properly report bus arbitration lost.
Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5307 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:09:38 +00:00
Jean Delvare 9a166de2c2 Dumping the register values before and after every transaction was
useful during driver development but now it's only spamming the log.
Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5306 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:06:46 +00:00
Jean Delvare 428e71b48e Minor cleanups to the i2c-piix4 driver, backported from Linux 2.6:
* Delete unused structure.
* Delete needless forward function declaration.
* Spell it SMBus not SMB.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5305 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:04:22 +00:00
Jean Delvare 4691c5dcf9 lm90: Fix LM86 detection. This closes ticket #2335.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5284 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-19 08:21:55 +00:00
Jean Delvare ab3a660f22 Fix functionality flags. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5257 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-19 08:53:02 +00:00
Jean Delvare d9287bbef5 Add Intel ICH10 support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5231 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:48:17 +00:00
Jean Delvare 50fcd028d0 There's nothing we can do about read errors on the W83L785TS-S, so
don't ask the user to report them (backported from Linux 2.6).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5220 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:12:30 +00:00
Jean Delvare 6be54c1d09 High-byte first is not opposite to the usual practice - that's what
almost all hardware monitoring drivers do. It is opposite to the SMBus
standard though. Also delete a duplicate comment.
(Backported from Linux 2.6)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5219 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:10:34 +00:00
Jean Delvare 3a4c2b64d8 Remove some dead code (backported from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5218 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:08:28 +00:00
Jean Delvare 20041cbfe1 Fix an error path. If initialization fails, we want to restore the physical
bus, not delete it again. Backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5217 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:53:50 +00:00
Jean Delvare b097de4ba4 Minor cleanups in sis5595_access, backported from Linux 2.6:
* Remove commented-out code.
* Remove a legacy comment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5216 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:22:49 +00:00
Jean Delvare 135fa09cb0 Minor cleanups backported from Linux 2.6:
* Remove a needless include.
* Remove a legacy comment in piix4_access.
* Minor optimization in piix4_access.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5215 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:21:30 +00:00
Jean Delvare d636ad5775 Drop broken I2C block read support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5148 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-16 18:04:20 +00:00
Jean Delvare 10c689aac4 Drop unused defines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5146 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-16 17:10:10 +00:00
Jean Delvare a0a1eb9aab w83627hf: Enable VBAT monitoring (#2282, 2.6 backport).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5121 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-09 10:01:12 +00:00
Jean Delvare ca3f53c26d lm90: Use generic i2c reads during detection (2.6 backport).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5120 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-08 19:10:35 +00:00
Jean Delvare 15d2b1d2a6 gl518sm: Fix fan speed reading (2.6 backport).
gl520sm: Fix fan speed reading (2.6 backport).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5119 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-08 10:34:10 +00:00
Jean Delvare 3433b8d9ed adm1026: Various cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5054 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-01 10:50:40 +00:00
Jean Delvare f16b6923bd Drop outdated URL.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5053 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-01 10:42:58 +00:00
Jean Delvare 53622c0a2e Discard dead e-mail address.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5042 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-24 16:58:08 +00:00
Jean Delvare 9df95ebdee Recognize VGN as a valid Sony Vaio name prefix. This is a backport from
Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5021 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-16 09:08:44 +00:00
Jean Delvare b5f0bc5e6c eeprom: Drop useless and possibly unsafe debugging log messages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5020 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-16 09:02:12 +00:00
Jean Delvare 7294b74b97 Hide Sony Vaio serial number and UUID to regular users. This is a backport
from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5019 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-16 08:48:06 +00:00
Jean Delvare 551652eec1 i2c-nforce2: Declare PEC as supported. This is a backport from Linux 2.6.
Kill dead code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4953 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-14 12:35:10 +00:00
Jean Delvare c681f7c79c Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC, as was done
in the Linux 2.6 kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4950 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-14 11:42:41 +00:00
Jean Delvare f0c355da8c Add support for the Intel Tolapai to i2c-i801. This is a backport from
Linux 2.6, original patch by Jason Gaston.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4946 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-14 10:23:09 +00:00
Jean Delvare b21ea865ec Clean up alarm bit definitions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4891 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-26 18:15:47 +00:00
Jean Delvare 82197ef51e Fix ATI SB700 SMBus support, add SB800 support (backport from Linux 2.6,
original patch by Shane Huang).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4739 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-01 08:19:13 +00:00
Jean Delvare aa52221779 Add a missing register read in fscher. Original patch from Hans de Goede,
backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4659 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-12 17:03:09 +00:00
Jean Delvare 1b69a84283 Fix an array overrun in lm93. Original patch by Hans J. Koch, backported
from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4658 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-12 16:55:35 +00:00
Jean Delvare 1d059ab3e0 Delete dead code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4652 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-11 17:22:20 +00:00
Jean Delvare 3a59a49011 Add missing new line at end of log messages. Indirectly reported
by Joe Perches.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4651 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-11 07:30:31 +00:00
Jean Delvare 7429bc0191 Fix the writing of the temperature interrupt configuration.
The old code was working only by accident. Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4634 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-21 08:36:54 +00:00
Jean Delvare d69b87bb74 Use PCI_REVISION_ID instead of our own define (backport from Linux 2.6.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4633 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-21 08:35:40 +00:00
Jean Delvare 226dffd064 Whitespace cleaups (backport from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4625 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:02:42 +00:00
Jean Delvare 57e38757f1 Add ATI SB700 support to the i2c-piix4 driver. This is a backport from
a Linux 2.6 patch by Henry Su.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4624 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:01:35 +00:00
Jean Delvare 7e3b183eab Delete many unused defines. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4623 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 20:58:12 +00:00
Jean Delvare 8eaa3767b1 Warning fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4614 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 18:55:14 +00:00
Jean Delvare f2f170a903 Warning fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4613 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 17:19:47 +00:00
Jean Delvare e251c94f60 Warning fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4612 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:59:50 +00:00
Jean Delvare 44b541a1e8 Fix broken links to datasheets.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4608 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-13 14:57:31 +00:00
Jean Delvare 5fa737e5e1 Add support for the EMC6D102 extra resolution bits. The chip offers
4 extra resolution bits per voltage and temperature channel, but I
chose to use only 2 bits per channel because that's what the ADM1027
has so it made the changes smaller. The EMC6D102 has a 10-bit ADC
anyway, the 2 remaining bits are obtained from averaging so they are
not so important.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4574 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 08:09:38 +00:00
Jean Delvare ae007f5831 Clean up needless casts and initializations.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4573 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 07:55:35 +00:00
Jean Delvare ba665c528e Add user-space support for it87 fan4 and fan5. Closes half of ticket #2227.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4565 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-06 15:44:28 +00:00