2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 12:57:51 +00:00

147 Commits

Author SHA1 Message Date
Jean Delvare
7ee15371df Support more bus types (part 1 of 2). Originally libsensors was very
i2c-centric. Make it more neutral so that we can cleanly support
additional bus types such as SPI or One-Wire.

This first part introduces sensors_bus_id, and updates
sensors_chip_name to use it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4686 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-19 15:03:50 +00:00
Jean Delvare
557feb2696 Fix error message when a chip is specified on the command line
with no prefix and that chip isn't found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4681 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-17 11:36:01 +00:00
Jean Delvare
edb42b3c16 Add a new function to libsensors doing the opposite of
sensors_parse_chip_name(). sensors_snprintf_chip_name() converts
a chip name from its internal representation to a human readable
string. So far, each user program had to reimplement this function.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4676 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-16 10:04:57 +00:00
Jean Delvare
b52225ffc0 Drop support for "dummy" bus type. The kernel no longer supports
such fake i2c buses, so neither should we. Instead, non-i2c buses are
handled explicitly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4672 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-16 09:54:53 +00:00
Jean Delvare
3b25c8dc22 Pass structures by reference in sensors and sensord, again for a
small performance gain and better consistency with the new
libsensors API.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4668 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-13 20:19:44 +00:00
Jean Delvare
3bab00fff9 Change the libsensors API so that all structures are passed by
reference. This is more efficient that way.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4666 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-08-13 20:16:03 +00:00
Jean Delvare
7b8fdf0188 Advertise and document libsensors_version.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4602 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 19:55:06 +00:00
Jean Delvare
b79274babd Add some more warning flags, and fix these warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 16:03:22 +00:00
Jean Delvare
4c905e1632 Drop the --generic option. This is the default now, so the option has
no effect.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4512 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 17:47:18 +00:00
Jean Delvare
6a6cf217d4 Drop all the chip-specific handling and printing code from sensors. The
generic printing code should work now, and what doesn't work, will get
fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4503 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 08:52:37 +00:00
Jean Delvare
24f6b62c3f Delete all remnants of algorithm names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4465 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 14:21:01 +00:00
Jean Delvare
f00aef9271 Return with an explicit error code/message if sysfs isn't mounted.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4464 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 13:58:55 +00:00
Jean Delvare
139afe6665 Disable specific support for the ds1621, lm90 and f71805f drivers.
I tested that the generic support works fine for these devices.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4424 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 15:02:18 +00:00
Hans de Goede
16408d8665 -comment abituguru entry in lib/chips.c and prog/sensors/main.c, as the
abituguru seems to work well with the new dynamic chip support and generic
 chip printroutines. note: the abituguru code should be completly removed in
 the future.
-comment k8temp entry in lib/chips.c and prog/sensors/main.c, as the
 k8temp seems to work well with the new dynamic chip support and generic
 chip printroutines. note: the k8temp code should be completly removed in
 the future.
-make the match for the subtype exact instead of a strncmp, otherwise
 an alarm_enable flag gets classified as an alarm, leading to all sensors who
 have their alarm enabled getting an alarm reported, as the alarm_enabled gets
 read as alarm.
-and do the same for the _input match to check if this is a main or subfeature


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4367 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-04-09 18:07:07 +00:00
Hans de Goede
d871e17ccf generic chip printing routine for sensors prog, by Bob Schlarmann and Luuk Kleiweg
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4362 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-04-09 14:43:29 +00:00
Mark M. Hoffman
c5ffa7b635 Merge from trunk (4303:4355) out to 3.0.0 branch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4357 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-04-03 12:55:30 +00:00
Jean Delvare
73922b2883 Add user-space support for the ADM1029. Patch contributed by
Corentin Labbe.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4270 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-22 21:11:07 +00:00
Jean Delvare
6310ee1f03 Add support for the w83627dhg. Original patch by David Holl.
This closes ticket #2157.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4264 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-18 07:43:00 +00:00
Jean Delvare
53cb805e44 Add user-space support for the Fintek F71872F/FG (chip name f71872f).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4232 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-12 13:17:32 +00:00
Rudolf Marek
2b3d98a880 Add the coretemp driver userspace support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4214 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-15 19:26:10 +00:00
Jean Delvare
054b265795 Really ignore option -a.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4207 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 17:18:06 +00:00
Jean Delvare
4e7c982027 sensors: Drop option -a (show algorithm names).
The algorithm names are no more available since Linux 2.6, and were not
very useful anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4206 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 13:01:10 +00:00
Jean Delvare
7891d63259 sensors: Handle option -c more efficiently.
We don't need to strdup() the file names, we can use them directly.
As a side effect, this fixes a memory leak which was happening if
option -c was specified more than once on the command line.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4205 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 12:43:43 +00:00
Jean Delvare
6b5b092e9c libsensors: Add support for the pc87247 driver (fans only).
sensord: Add pc87247 support (fans only).
sensors: Add pc87247 support (fans only).
sensors-detect: Advertise the upcoming pc87427 driver.
Thanks to Amir Habibi at Candelis for setting up a test system.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4196 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-06 09:27:56 +00:00
Jean Delvare
94fa667c46 libsensors: Missing sysfs busses and classes are not errors. This tends
to confuse users a lot, to report the lack of hwmon driver as an error.
prog/sensors: Clearer error messages when no sensors are found. The
most frequent cause is a lack of drivers, not procfs/sysfs problems.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4159 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-19 10:01:12 +00:00
Jean Delvare
8c235d29a9 Add userspace support for the Winbond W83793. Patch contributed by
Yuan Mu (Winbond.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4109 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-24 18:13:20 +00:00
Rudolf Marek
6e87587ac6 Add support for k8temp driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4100 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-19 15:31:02 +00:00
Rudolf Marek
9aaa09c40e Add PCI bus support - forgot to commit with last changeset
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4099 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-19 15:29:55 +00:00
Jean Delvare
0e3ba1d1a1 Add support for the ITE IT8718F Super-I/O chip (prefix: it8718).
Unsurprisingly, it is very similar to the IT8716F.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4089 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-09 07:20:54 +00:00
Jean Delvare
79817f34ce Add support for the IT8716F (prefix it8716). It is mostly similar to the
IT8712F so there's not much to do. The most significant difference is that
fan speeds are now reported as 16-bit values, without fan clock dividers.
For this reason, I made the fan_divs optional in sensors. I also made the
fans themselves optional, as I noticed that a number of motherboards don't
use (and don't enable) fan3.

I've made a separate section (chip "it8716-*") in sensors.conf.eg, because
new motherboards tend to have different wirings (e.g. negative voltage
lines are not monitored) so this will make for saner defaults.

Thanks to Stian Oksavik for testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4083 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-03 20:28:20 +00:00
Jean Delvare
3643a0b2e0 Add user-space support for abituguru. Patch from Hans de Goede.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4035 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-02 18:49:23 +00:00
Jean Delvare
dee3639075 Add userspace support for the smsc47m192 driver. Patch from
Hartmut Rick.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3277 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-28 21:31:16 +00:00
Jean Delvare
b36654cb3b Add 2.4 kernel and user-space support for the Winbond W83687THF
chip. Needs testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3226 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-10 11:17:17 +00:00
Jean Delvare
ffdd27a3c2 Initial support for the Fintek F71805F/FG chip.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3169 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-04 20:59:18 +00:00
Jean Delvare
d2e6e8561b Disable iconv when uclibc is used.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3120 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-14 16:51:44 +00:00
Jean Delvare
d523b3b7d1 Fix misleading error message when no chip is found on Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3101 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-25 13:31:53 +00:00
Jean Delvare
d21508f62f EMC6D102 support. Patch from Rafael Avila de Espindola.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2957 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 15:44:53 +00:00
Jean Delvare
f10ddad667 Add preliminary support for the w83627ehf.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2950 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 12:11:03 +00:00
Mark D. Studebaker
e25e3511f4 w83792d driver and userspace support patch from Winbond.
by Chunhao Huang <huang0@winbond.com.tw>
         submitted by <DZShen@winbond.com.tw>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2925 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-10 19:03:52 +00:00
Jean Delvare
163871a6b2 Userspace support for the ADT7461 (patch by James Chapman).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2920 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-03 21:05:57 +00:00
Jean Delvare
8e96564659 Add gl520sm support (Maarten Deprez).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2887 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-01 19:23:05 +00:00
Mark M. Hoffman
d57ea204c6 Name fix: lpc57b397 -> lpc47b397
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2770 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-24 04:31:40 +00:00
Mark M. Hoffman
3b64007d60 Add support for SMSC LPC57B397-NC sensor chip.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2769 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-23 16:20:25 +00:00
Jean Delvare
5aef60324d Simplify the configuration file opening code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2768 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-21 21:36:10 +00:00
Jean Delvare
2898ec26ea Use only one default configuration file (the one "make install"
will install). Display the default configuration file in "sensors --help".
Thanks go to Dave Hylands for the suggestion.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2767 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-21 19:26:56 +00:00
Jean Delvare
4538d37d49 Support the new lm63 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2729 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-13 20:56:59 +00:00
Jean Delvare
f09b9af8d1 it8712 support. Original patch by Rudolf Marek.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2701 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-25 11:24:12 +00:00
Jean Delvare
26f600b2aa Fix a bug in libsensors which caused some failed feature writes
("set lines") to go unnoticed. lm78's fan3_div (which is read-only
        but stored in a R/W file in procfs) was one of them.
        Make sensors' error message in this case more explicit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2692 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-19 17:37:18 +00:00
Mark M. Hoffman
b3945a5625 Added support for LM93.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2684 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-08 16:21:44 +00:00
Jean Delvare
d282a5f3be Add LM86, MAX6657 and MAX6658 support to the lm90 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2633 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-04 19:12:18 +00:00