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
0e97b89004
Fix detection of Intel 5000 series FB-DIMM AMB.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5367 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 12:55:02 +00:00
Jean Delvare
3efa6bf239
Add support for lm89, max6681, max6658, max6659, max6646, max6647 and
...
max6649 prefixes. The lm90 driver doesn't instantiate such devices on
auto-detection as they are undistinguishable from other supported types,
but such devices can still be instantiated explicitly since kernel
2.6.27, and supporting them is cheap.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5364 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-20 08:18:39 +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
5337690525
Add VIA VX800/VX820 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5359 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-14 16:15:30 +00:00
Jean Delvare
91f7d80bd0
Map IT8720F to it87 driver.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5357 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-08 06:30:46 +00:00
Jean Delvare
46723bb4e3
Add user-space support for the IT8720F (handled exactly the same as
...
the IT8718F.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5356 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-07 20:52:01 +00:00
Jean Delvare
57306b3b48
Add PWM experiment information from ticket #2350 .
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5355 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-04 11:32:03 +00:00
Jean Delvare
a8fec4101d
Add trac ticket number.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5353 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-04 08:28:58 +00:00
Jean Delvare
ec961aae0c
Spelling fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5351 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-29 19:05:36 +00:00
Jean Delvare
7d3970e186
Recognize it87 thermal sensor type 4 as thermistor. This is the
...
standard value in the sysfs interface, and the it87 driver in kernels
2.6.28 and later will use that.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5342 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-27 10:39:41 +00:00
Jean Delvare
6d7e8cca2a
Typo fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5341 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-26 14:55:56 +00:00
Jean Delvare
2ea1dd208c
Change default for MINTEMP from 0 to 20 degrees C. Computers never run
...
below 20 degrees C, so setting MINTEMP to 0 uselessly reduces the control
range.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5336 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-10 07:35:44 +00:00
Jean Delvare
e03e8f12a7
Indentation fixes, drop trailing whitespace.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5335 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-10 07:33:05 +00:00
Jean Delvare
bdaefa5efa
W83627DHG has no subclients.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5334 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-10 07:30:12 +00:00
Jean Delvare
869a6b7f81
Prevent misdetection of W83627DHG (and more generally, Winbond chips)
...
on I2C as LM78.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5333 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-10 07:28:17 +00:00
Jean Delvare
bc0b859f04
Fix MINSTOP and MINSTART test functions. PWM must be enabled for the duration
...
of the test, and disabled again afterwards. Bug reported by Philippe Roubach.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5319 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-09-08 09:52:55 +00:00
Jean Delvare
c3c285d617
Fix typo.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5316 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-08-20 18:04:07 +00:00
Jean Delvare
48df11e309
An updated TMP411 datasheet actually shows that this chip has different
...
device IDs than the TMP401.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5313 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-08-20 17:58:03 +00:00
Jean Delvare
aa7b260b09
The TI TMP411 has the same device ID as the TMP401.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5311 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-08-20 11:25:47 +00:00
Jean Delvare
023bfee4e1
Add ITE IT8720 detection. No datasheet available yet.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5309 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-08-09 12:54:49 +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
5bd4f1dd99
Add detection of VIA VT1212 and SMSC EMC2700LPC Super IOs.
...
Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5304 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-14 18:29:21 +00:00
Jean Delvare
389555eda3
The free_expr() function is no longer static in lib/init.c (it is also
...
used in lib/conf-parse.y), and therefore must be renamed according to
the libsensors naming conventions.
Patch from Sergey Vlasov.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5301 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-14 16:15:07 +00:00
Philip Edelbrock
feee4d9309
Put back some SVN related version info.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5299 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-01 19:03:40 +00:00
Philip Edelbrock
682cfda93a
Tag and release 2.10.7
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5297 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-01 18:28:03 +00:00
Jean Delvare
36c8df21cc
Bump version.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5296 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-30 08:00:10 +00:00
Jean Delvare
ffadc527cf
Fallback to simple depmod if System.map can't be found.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5294 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-29 22:08:48 +00:00
Jean Delvare
1036c96c71
We have a driver for the Winbond W83L786NR/NG/R/G now.
...
Closes ticket #2336 .
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5291 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-24 06:40:46 +00:00
Jean Delvare
5215a15ebd
Add VIA C7 detection. Patch from Juerg Haefliger.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5289 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-24 06:31:27 +00:00
Jean Delvare
253dc9c9d9
The configuration file is currently parsed in the locale set by the main
...
program using the library. This means that if the decimal separator
(defined in LC_NUMERIC) is not '.' the values in the compute lines are
truncated. This happens for example with sensors-applet and a French
locale.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469333
Parsing the configuration file in C locale fixes the problem.
Original patch from Aurelien Jarno. Also closes ticket #2312 .
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5286 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-19 08:38:44 +00:00
Jean Delvare
38c7268590
Fix adm1021, adm1023 support with 2.6 kernel. This closes ticket #2334 .
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5285 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-19 08:28:25 +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
29a6f09c49
Fix Analog Devices ADT7461 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5283 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-15 08:43:37 +00:00
Jean Delvare
5279cedf9f
Fix Andigilog aSC7621 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5277 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-08 10:22:08 +00:00
Jean Delvare
1ca0a25154
Don't use named pipes when we don't need them. Named pipes have been reported
...
to cause trouble on some systems. This closes ticket #2319 .
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5272 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-02 06:23:51 +00:00
Jean Delvare
d110f707cf
Display the local temperature of the MAX6657 with one decimal place.
...
The chip can do it even though the lm90 driver doesn't support it yet.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5265 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-27 17:26:31 +00:00
Jean Delvare
5d0581afcb
Coding style fixes.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5263 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-24 06:58:19 +00:00
Jean Delvare
b155419611
Mass coding-style cleanups.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5259 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-22 12:00:52 +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
9195f25c65
Add lm90, adm1032, lm99, lm86, max6657 and adt7461 support to sensord.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5253 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-13 16:06:16 +00:00
Jean Delvare
52c42c3794
Add Dallas DS1631 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5250 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 21:01:18 +00:00
Jean Delvare
2e9d43f253
Rework all device detection routines which use SMBus read word
...
transactions in address range 0x40-0x48. Some devices don't like word
transactions, so we now try to do as much of the detection as possible
using byte transactions, and only use word transactions when there is
a good chance that the detection will succeed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5248 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:16:27 +00:00
Jean Delvare
81e9cacb79
Try to detect 1-register-only devices, which are designed to be
...
accessed with SMBus receive byte and SMBus send byte transactions
(i.e. short reads and short writes) and treat SMBus read byte as a
real write followed by a read. The device detection routines would
write random values to the chip with possibly very nasty results for
the hardware. So when we detect such a chip, we skip all probing for
this address.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5247 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:14:29 +00:00