Commit Graph
342 Commits
Author SHA1 Message Date
Mark M. Hoffman 72889cb191 Two minor cleanups: 1) remove the yymore() calls, they're no longer necessary;
and 2) make the quoted escape sequence rules a little more compact.  The first
cleanup is said to yield a slight speedup according to the flex manual - I
didn't bother to measure it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4236 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-12 18:36:15 +00:00
Mark M. Hoffman dcdd19ed72 The scanner regression test cases for error conditions in quoted strings
uncovered three different bugs.  This changeset fixes them all.  It also
updates the sensors.conf(5) man page to be unambiguous regarding the
requirement for whitespace between elements.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4235 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-12 18:24:55 +00:00
Mark M. Hoffman 68558575ad Add error conditions for quoted names to scanner regression test.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4234 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-12 18:21:43 +00:00
Mark M. Hoffman 04cd960539 Add quoted names to scanner regression test. Note: no tests for octal
escapes yet... it's possible we'll just kill support for those (I hope).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4233 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-12 15:32:59 +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
Mark M. Hoffman 9c3a817633 Merge scanner-opt-branch (r4121:r4221) to trunk.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4222 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-26 11:50:27 +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 6270cf381a libsensors: Drop support for algorithm names.
I2C algorithms no longer have names in Linux 2.6, and anyway they are
implementation details user-space doesn't care about. No third party
application is known to have ever used this particular feature of
libsensors. "sensord" and "sensors" no longer do.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4208 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 19:55:41 +00:00
Jean Delvare bf96a279b8 libsensors: Probe for busses before chips. This makes more sense that way,
and may allow for cleanups later.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4198 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-08 15:45:15 +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
Philip Edelbrock 03d8bdbada Release of 2.10.1, and some clean ups to the release checklist.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4177 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-24 22:28:55 +00:00
Jean Delvare a4fc9253af vt1211: Rework the voltage and temperature conversions and the temperature
input order to match the Linux 2.6 driver.
libsensors: Change vt1211 temp3-7 magnitude from 1 to 3.
sensors.conf.eg: Adjust the vt1211 section to match the new driver
                 interface.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4168 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-23 09:32:29 +00:00
Jean Delvare 73413d0d92 Remove empty include directories on make user_uninstall.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4163 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-20 15:47:04 +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
Rudolf Marek c9bd83748b Fix the homepage address
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4157 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-17 21:01:35 +00:00
Jean Delvare c019a96e1e The VT1211 has no in6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4155 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-07 21:05:43 +00:00
Jean Delvare a026e09bd5 Chop newline at the end of adapter name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4138 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-03 13:05:26 +00:00
Jean Delvare 08a1bd9684 The original adm1026 driver numbered the fans from 0 to 7, and so does
libsensors. The Linux 2.6 adm1026 driver uses the standard numebring
(from 1 to 8). Map fan0 to fan8 to make things work while keeping
confusion to the minimum (hopefully.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4118 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-28 19:15:28 +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 3027d75a12 Add PCI bus support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4098 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-19 15:23:10 +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 a526a4a690 Check for fscanf() failure when reading sysfs attributes.
Also drop a redundant return.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4081 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-01 09:48:42 +00:00
Mark M. Hoffman 0705e4d581 Reformat of lib/access.c:
First ran .../scripts/Lindent from Linux 2.6.x, then fixed up some
things that were particularly ugly.  Verified the final result by
rebuilding and running 'objdump -d' on the before and after; there
were no differences.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4073 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-25 02:12:37 +00:00
Jean Delvare 3c3999f9f0 lib/sysfs.c: Fix no sensors being reported as an error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4041 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-06 11:23:59 +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
Mark M. Hoffman 4d2c4fd212 Previous leak fix caused multiple sensors_init() calls to break.
This patch fixes that by managing the scanner buffers manually.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3300 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-20 15:24:37 +00:00
Mark M. Hoffman 9a8f962d88 Allow the config file scanner to release its buffers upon EOF.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3296 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-16 02:14:57 +00:00
Mark M. Hoffman e620cb652c fix 2 leaks found by valgrind - missing some free() during cleanup
(as opposed to ongoing run-time leaks)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3293 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-15 03:06:05 +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 8212877b81 Add W83627EHF fan and temperature alarm support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3272 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-22 14:26:48 +00:00
Rudolf Marek 0b6ac4f953 Add the W83627EHF Voltages and voltage alarms support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3271 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-22 13:53:30 +00:00
Jean Delvare 70bb3c495e Fix device scan when no i2c support exists or no i2c bus driver
is loaded.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3261 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-25 21:32:26 +00:00
Jean Delvare ebbd0ba836 Bump lib version to 3.1.0 for the upcoming lm_sensors 2.10.0
release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3253 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-11 18:54:49 +00:00
Rudolf Marek c83a8a43e8 Add back the temp1 in vt1211, patch from Juerg Haefliger <juergh@gmail.com>
This patch enables the reading of temp1 (Reading3) from the VT1211.
Reading3 returns the V1211's internal temperature.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3246 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-27 21:02:09 +00:00
Jean Delvare 7abd07cf00 Fix sysctl warnings on x86_64. Reorder includes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3244 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-23 07:48:38 +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 337ffc5729 Add support for the new platform drivers (Linux 2.6, sysfs).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3224 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-09 19:55:18 +00:00
Jean Delvare 5cd5fde08d vt8231 cleanups, to get the 2.4 driver, libsensors and sensors
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
2005-11-19 14:55:30 +00:00
Jean Delvare 58481a6422 Fix w83627ehf temp2 and temp3 magnitude.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3170 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 09:08:26 +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
Mark M. Hoffman 72a6f0dde5 Fix bug in smsc47b397_features table, noticed by Jean Delvare.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3133 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-28 03:32:39 +00:00
Mark M. Hoffman 2c5ffc1053 A trivial cleanup for getsysname() - there's no reason for matches[]
to be an automatic, or non-const.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3116 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-02 14:55:58 +00:00
Mark M. Hoffman efb1c0d53c Minor cleanup: get rid of an unnecessary forward declaration.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3115 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:38:56 +00:00
Mark M. Hoffman b4598af0aa Remove a workaround for sysfs support that is no longer needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3113 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:31:35 +00:00
Mark M. Hoffman b374291396 (mmh)
Bugfix: lib/init.c wasn't compiling properly if SYSFS_SUPPORT was turned off.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3098 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 21:24:58 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Mark M. Hoffman 85a0c8ccb2 (mmh)
This patch replaces the I2C chip enumeration (through sysfs) in lib/proc.c
with new functions in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3095 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:38:19 +00:00
Mark M. Hoffman c277761d15 (mmh)
This patch replaces the I2C bus enumeration (through sysfs) in lib/proc.c
with a new function in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3094 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:37:42 +00:00