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
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
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
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
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
Jean Delvare
4c32b1a881
Fix hyst temp for 2.6 lm75, lm78 and gl518sm. Shame on me.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2426 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-09 17:19:10 +00:00
Jean Delvare
478a83d656
Revert bogus assumption that magnitude of sysfs files can only be
...
0 or 3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2421 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-07 18:03:14 +00:00
Mark M. Hoffman
71a96916d5
Patch by Philipp Thomas <pth@suse.de>:
...
> Current gcc versions warn when type punning is used, as this breaks the
> strict aliasing analysis gcc 3.3 does by default. When checking the causes
> for these warnings I discovered that sensors_malloc_array,
> sensors_free_array, sensors_add_array_el and sensors_add_array_els in
> lib/general.c all take a 'void **' for the list. This is plain wrong as
> the C standard only allow 'char *' and 'void *' to alias any other type, so
> if these functions should take a generic pointer, it *must* be a 'void *'
> that's internally cast to a 'void **'.
>
> The attached patch does this and adapts all places where these functions are
> called. Note that when done correctly, no cast what-so-ever in the calling
> code is needed.
>
> The patch is against current lm_sensors2 cvs version.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2345 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-08 04:39:50 +00:00
Jean Delvare
b0bcb2990c
Switch to new sysfs naming standard.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2342 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-07 07:30:27 +00:00
Jean Delvare
8ee9459465
Correctly handle 2.6 subclients. Original patch by Andrey
...
Borzenkov, much reworked.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2327 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-29 10:25:54 +00:00
Jean Delvare
9cc513005e
Fix 2.6 temp_statusX wrong magnitude.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2265 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-03 17:46:03 +00:00
Jean Delvare
8ec1dd9d01
Add 2.6 fan_rippleX for fscher.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2259 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-01 14:54:33 +00:00
Jean Delvare
db27a07183
Support 2.6 gl518sm driver.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2250 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-30 20:57:38 +00:00
Jean Delvare
cfb191a884
Add necessary conversions for FSC chips.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2247 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-26 21:50:42 +00:00
Jean Delvare
6d3bdb9ba5
Use unbuffered I/O for 2.6 eeprom to benefit from driver
...
optimization.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2225 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-17 18:12:38 +00:00
Jean Delvare
1262c11c2f
Get rid of the lm90 hyst exception.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2211 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-09 21:35:27 +00:00
Jean Delvare
648fe2056f
Undo libsensors' hyst->min not needed anymore since linux
...
2.6.1-rc1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2204 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-05 20:39:59 +00:00
Jean Delvare
cc6c1a12a4
Add support for the Linux 2.6 version of the lm90 driver.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2197 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-31 21:30:43 +00:00
Mark D. Studebaker
5ced89019d
better comments for getsysname()
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2196 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-30 22:21:40 +00:00
Mark D. Studebaker
ee719c4963
fix off-by-one bug with 2.6 eeprom handling
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2165 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 23:38:08 +00:00
Mark D. Studebaker
01c921f51d
add hack to support eeproms in 2.6 kernels
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2162 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 19:01:43 +00:00
Jean Delvare
0c3e17a4ec
Fix sensors segfault on bus freeing (sysfs).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2111 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 17:44:30 +00:00
Jean Delvare
3bcb913c3f
Add debugging code to trap systems that don't let libsensors
...
write to /proc. Define DEBUG to have it in, and use strace to
get the result.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2107 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 13:28:54 +00:00
Jean Delvare
add66b1875
Undo unacceptable hack. Better let things crash if they would,
...
at least we'll be able to investigate.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2092 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-24 20:18:47 +00:00
Mark D. Studebaker
f393a88321
bus number is decimal, not hex
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2087 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-22 22:27:47 +00:00
Mark D. Studebaker
a978c11e94
adjust some mappings; map hyst to min to match what's in kernel -test8/9
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2081 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 04:07:22 +00:00
Mark D. Studebaker
401f8ce7f2
add getsysname() function which converts standard /proc names to
...
standard sysfs names and magnitudes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2076 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-19 03:11:13 +00:00
Mark D. Studebaker
a6ba35fb66
add sysfs write support
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2066 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-17 14:22:05 +00:00
Mark D. Studebaker
6e2c2a4d69
correctly mark ISA chips with special ISA bus number
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2061 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-16 19:54:38 +00:00
Mark D. Studebaker
86a6cdbb06
retrieve i2c adapter name from sysfs
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2060 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-16 19:43:05 +00:00
Mark D. Studebaker
27e9877012
Add preliminary sysfs support. Two entries added to struct sensors_chip_feature.
...
chips.c support added only for w83781d as an example.
Advance library version to 3.0.0.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2059 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-16 17:57:29 +00:00
Mark D. Studebaker
e9c0fce42a
adm1026 and auto-sensors.h patch from P.P.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1777 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:33:39 +00:00
Kyosti Malkki
1cfe63804a
(Kyösti) Cleanups
...
Copy sysctl enums to chip drivers from sensors.h for now,
as seen in drivers included in 2.5 tree. File no longer included
from kernel side.
Apply i2c-proc change in CVS tagged -km2.
Partial clean and sort of includes everywhere.
Add i2c-dev.h, as a partial copy from i2c.
Add to sensors.h from i2c-proc.h to compile things.
Remove i2c-isa.h.
Reflect header file changes to lib/ and prog/.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Jean Delvare
04e0399c6f
Negative magnitude bugfix
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1597 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-10 23:13:38 +00:00
Mark D. Studebaker
a21694024e
Change from sensors_x to i2c_x for x =
...
_sysctl_real
_register_entry
_proc_real
_detect
_deregister_entry
_chips_data
which were the global symbols renamed in i2c-proc.[ch] in the
i2c package.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1101 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-27 22:49:28 +00:00
Frodo Looijaard
24792039f6
Adrian's copyright patch applied
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 22:50:29 +00:00
Philip Edelbrock
ce7aea9a5a
(Phil) Made slight adjustments so the new file arrangement will build.
...
I added two new make file 'includes': busses/Module.mk and chips/Module.mk
Frodo- You may want to review the makefile structure to make sure that
the system works as you intended.
Note: The docs still need to be updated to reflect the new file arrangement,
but at least it builds!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@176 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:10:00 +00:00
Frodo Looijaard
1654f21fc5
Some library cleanup; no interface changes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@120 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 22:15:48 +00:00
Frodo Looijaard
849acbe439
More libary stuff
...
The bus translation functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@101 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-22 01:25:25 +00:00
Frodo Looijaard
f26b52021b
More library extensions
...
Most notably, config file line numbers are now stored, so we can now generate
better error messages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@98 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-21 14:14:25 +00:00
Frodo Looijaard
730efd78ca
More library files
...
This brings the archive into synch with my harddisk...
Everything in the lib directory should compile without problems (yes, even
without warnings even if WARN=1). It is not well-tested, though, and there
are some minor functions which must still be added. It is now almost
usable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@95 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-20 16:54:03 +00:00