Commit Graph
3050 Commits
Author SHA1 Message Date
Mark M. Hoffman 59a14e2ea4 update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3097 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:55:37 +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
Mark M. Hoffman 87fba1c487 (mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs).  In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c.  The sysfs
detection now happens very early during library init, rather than later.

The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3093 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:30:44 +00:00
Mark M. Hoffman 10337cf80b (mmh)
This trivial patch links the libsysfs library to the libsensors library.
One needs to build and install sysfsutils first:

http://linux-diag.sourceforge.net/Sysfsutils.html

This patch is naive, at least to start.  Later it will be made optional
depending on whether support for Linux 2.6.x is needed, or just 2.4.x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3092 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:25:25 +00:00
Mark M. Hoffman 6504401cf8 (mmh)
This patch moves two macros from lib/proc.c to lib/data.h.  The macros
pick up the "sensors_" prefix along the way.  The motivation is the
same as the previous patch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3091 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:30:16 +00:00
Mark M. Hoffman 2c5441a2db (mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c.
The variables were already declared in lib/data.h.  Motivation: when
support for kernel 2.4.x becomes optional, lib/proc.c may not even be
compiled into the library... but these variables are still needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3090 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:28:51 +00:00
Jean Delvare 1e29d075db Add large lookup tables for manufacturer names (based on data
provided by Rudolf Marek).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3089 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 15:21:12 +00:00
Jean Delvare 95a85c3aeb Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3088 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:54 +00:00
Jean Delvare 51c7b3d4d9 Drop -W, sensord warns too much with it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3087 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:35 +00:00
Jean Delvare e7efcf6578 (Aurelien Jarno) Drop EEPROM support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3086 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:54:42 +00:00
Jean Delvare 842c64de27 Kill an unused variable left over from a previous cleanup.
Backport from Linux 2.6, credits go to Andrew Morton.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3085 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-12 17:56:56 +00:00
Jean Delvare e02d1b734e Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3084 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:39:37 +00:00
Jean Delvare 1c9823cffd Compile userspace tools with -W.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3083 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:38:45 +00:00
Jean Delvare 2c0ca7852a Drop Linux-2.6 specific eeprom code, as we no longer support
eeproms on 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3082 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:27:20 +00:00
Jean Delvare ac478a3ef9 Do not log the algorithm name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3081 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:23:58 +00:00
Jean Delvare 57e3589237 Declare foundsysfs in proc.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3080 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:09:42 +00:00
Jean Delvare ece5b07360 Drop all references to the algorithm names, as Linux 2.6 doesn't
export them. Do not rely on "i2cdetect -l" printing it, in case we drop
it there later. Change the adapter "match" field from a sub to a
regular expression, as this is how this field is actually used.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3079 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 14:39:55 +00:00
Jean Delvare 2cc8929c9e Stop printing the algorithm name unless /proc compatibility format
is requested. Print the correct bus type if bus functionality can be
queried (will work if i2c-dev is loaded and user has write access to
 /dev/i2c*).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3078 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 12:03:14 +00:00
Jean Delvare 32fbdf8ba4 Add a "quiet" parameter to open_i2c_dev() to prevent it from
displaying error messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3077 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 11:38:32 +00:00
Jean Delvare 27e2a62bab Fix bus matching mechanism which had always been broken for Linux
2.6. Original patch from Karsten Petersen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3076 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 09:29:35 +00:00
Jean Delvare 28f8be1038 Drop all references to the old mailing list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3075 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-08 16:29:41 +00:00
Jean Delvare 2c48b2afc9 Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3074 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:59:50 +00:00
Jean Delvare 060662c522 Remove bus probing code. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3073 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:49:53 +00:00
Jean Delvare 08bdbcac71 Remove dead code. Backport from a 2.6 kernel patch by
Hans-Frieder Vogt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3072 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:16:18 +00:00
Jean Delvare 222cfb6918 Drop the W83697HF support from the w83781d driver. It is better
supported by the super-I/O w83627hf driver. Patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3071 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:21:44 +00:00
Jean Delvare 70eca45135 One more model reported to work (VGN-S4M/S).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3070 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:15:52 +00:00
Jean Delvare 401d48d27f Compile user-space programs with -Wundef.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3069 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:12:17 +00:00
Philip Edelbrock 83e9f83c38 Prep for 2.9.3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3068 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 20:08:27 +00:00
Philip Edelbrock 97649c80b4 Tag and release 2.9.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3066 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:44:58 +00:00
Jean Delvare ea18616b4a Add a FAQ entry about the eeprom entries which sensors won't
display anymore.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3065 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:07:59 +00:00
Mark M. Hoffman df8e4b3895 drop eeprom display when kernel is 2.6.x - partially resolves this:
http://lists.lm-sensors.org/pipermail/lm-sensors/2005-August/013403.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3064 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 03:33:43 +00:00
Jean Delvare c007106225 Link to two motherboard configuration file databases.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3063 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-03 18:53:56 +00:00
Jean Delvare 96ed8ae3fa Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3062 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-30 18:56:35 +00:00
Jean Delvare 2bafd91ef5 The smsc47m1 driver now supports the LPC47M15x/192 chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3061 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-30 18:51:18 +00:00
Rudolf Marek 8894546f1f Fix potentional security issue. Thanks to Javier Fernández-Sanguino Peña <jfs@computer.org>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3060 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-20 19:45:53 +00:00
Rudolf Marek ab86f9c284 Comment out too low temperature limits examples, cleanup limit section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3059 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-19 15:58:58 +00:00
Mark M. Hoffman 5845bd9cb0 Get rid of some unused global variables.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3058 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-19 02:59:52 +00:00
Mark M. Hoffman 1e5fefa045 Please use safer string handling in any code you're already touching.
http://www.gratisoft.us/todd/papers/strlcpy.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3057 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-16 01:16:59 +00:00
Jean Delvare a9f8528a69 Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3056 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-15 17:03:41 +00:00
Jean Delvare 88a2dc7c95 Support pc87360. Patch from Henrik Brix Andersen.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3055 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-15 17:03:19 +00:00
Jean Delvare 55e270102e Library updates.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3054 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-14 12:56:03 +00:00
Jean Delvare 305544ae4b Limit stack usage in sensors_read_proc_chips().
Remove forgotten debug printf from previous commit.
Make getsysname static.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3053 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-14 11:42:29 +00:00
Jean Delvare 6ee626562d Support /sys/class/hwmon (Linux 2.6.14+).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3052 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-14 11:13:48 +00:00
Jean Delvare 71c5a661a7 Add some case insensitiveness to the regexp matching the
i2c-viapro adapter name, in anticipation of a future change.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3051 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-13 08:44:59 +00:00
Jean Delvare 00e07cfde1 Prevent possible (but harmless and unlikely) buffer overflow.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3050 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-08 19:44:52 +00:00
Jean Delvare 9355218adf Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3049 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-08 19:15:33 +00:00
Jean Delvare 4da4861017 Properly handle short i2c block reads.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3048 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-08 19:09:32 +00:00
Jean Delvare cddd9a51f5 Kill two useless macro and an out-of-date comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3047 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-29 17:58:17 +00:00