Commit Graph
296 Commits
Author SHA1 Message Date
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
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 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 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 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
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
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
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 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 f98d12b4b5 Fix memory leak in sensors_get_label(). Reported by John Naylon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3031 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-15 08:57:43 +00:00
Rudolf Marek b32aa3c716 Update from Huang - w83792d_driver-1.0.5.patch, alarms handling fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3012 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-01 10:49:04 +00:00
Jean Delvare e43a9cdb4b Drop the separate defintions for DS1780, it's really similar to
the ADM9240. Original patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3009 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-28 10:00:46 +00:00
Jean Delvare 5aed4be0e5 Fix common spelling errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3000 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-15 10:06:15 +00:00
Jean Delvare 3ac9042b13 Change vid sysfs file name for adm1025, adm1026 and adm9240.
Patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2998 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-11 17:42:24 +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 051881731e vt1211 2.6 support (fix uch_config)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2932 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-15 22:16:05 +00:00
Mark D. Studebaker 44c0a5bdfe bump to 3.0.8 for upcoming 2.9.1 release
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2927 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-10 19:24:54 +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 4a4dafa487 Support the Linux 2.6 lm92 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2919 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-28 19:04:39 +00:00
Mark D. Studebaker efa528b70d add support for 2.6 bmcsensors
from http://bmcsensors-26.sourceforge.net


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2888 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-02 02:57:47 +00:00
Jean Delvare fa1975835a Support the Linux 2.6 version of the gl520sm driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2874 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-27 21:13:44 +00:00
Jean Delvare ef5c0563b8 Patch from Aurelien Jarno:
Please find attached a patch to support the sis5595 with the new 2.6
driver. It should also add support for displaying in4 with a 2.4 kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2869 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 21:01:45 +00:00
Jean Delvare 3deac652ba Support the Linux 2.6 fscpos driver. Patch from Stefan Ott.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2856 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-20 19:52:38 +00:00
Mark D. Studebaker f3957ff416 bump to 3.0.7 for 2.9.0 release
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2807 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-23 17:37:59 +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 411dc06a0b Add support for Linux 2.6 lm63 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2745 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-24 20:27:55 +00:00
Jean Delvare bc177df57b Add lm63 support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2727 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-13 20:56:17 +00:00
Jean Delvare 482b3c967f Fix it8712 prefix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2705 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-28 20:44:11 +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
Mark M. Hoffman 220b15dfed Add backwards compat. code in anticipation of changing sysfs driver
interface...

	fan?_pwm => pwm?
	fan?_pwm_enable => pwm?_enable


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2700 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-23 04:04:21 +00:00
Mark D. Studebaker 51f33c9474 bump to 3.0.6
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2694 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-19 17:45:17 +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 3d08e7b625 Add missing ALARMS support for LM93 to libsensors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2683 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-08 15:04:59 +00:00
Jean Delvare 0ca078c43a Fix lm87 section, will help with the 2.6 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2670 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-23 18:44:15 +00:00
Jean Delvare 76fd9cd677 Fix LM83 critical limit in Linux 2.6 (support both old temp_crit
and new temp3_crit).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2655 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-08 20:10:24 +00:00
Jean Delvare a942af3cfc Allow an alternate sysfs file name for chip features. This is
needed to provide backward compatibility when changes are made
        to the sysfs interface (policy change or driver fix).
        The first item for which this is needed is VID files. The name
        we chose, in0_ref, is bad (because motherboard manufacturers can
        use any input for VCore, regardless of the recommendations.
        Thus, the new name cpu0_vid is better. Drivers will be updated
        later.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2654 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-08 16:38:28 +00:00
Mark M. Hoffman 57320d467a first draft at a driver for LM93
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2653 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-05 03:44:30 +00:00
Jean Delvare 65df530eb5 2.6 ADM9240 support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2635 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-07 19:53:51 +00:00
Jean Delvare 2d51a717de Preliminary changes for LM87 support in 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2634 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-07 14:17:02 +00:00