Commit Graph
217 Commits
Author SHA1 Message Date
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
Mark D. Studebaker e1c3e50aac correctly install shared lib 755
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2344 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-07 16:43:49 +00:00
Jean Delvare b7706a11a1 Bump lib version.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2343 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-07 15:06:03 +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 d0091d0dfd as99127f doesn't have in7/8 nor sensor1/2/3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2326 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-29 09:11:57 +00:00
Jean Delvare dce540bec8 Add support for Shuttle eeproms.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2321 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 16:57:34 +00:00
Mark D. Studebaker 705eeb900f remove in6 and temp1 from vt1211 and vt8231
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2318 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 16:24:01 +00:00
Jean Delvare 72531a8512 Advance to 3.0.3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2312 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 17:49:28 +00:00
Jean Delvare c97dfa8fde Add support for the W83637HF.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2289 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-13 18:10:43 +00:00
Jean Delvare a38d8614a6 Fix vt1211 and vt8231 uch_config not being writable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2288 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-12 22:13:28 +00:00
Jean Delvare 05d5bd78e3 Reverse temporary w83l785ts mappings change.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2281 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-10 17:59:27 +00:00
Jean Delvare 5007ebb449 Rename fscher fan_min to pwn (which it really is). (Reinhard
Nissl)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2280 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-08 21:10:19 +00:00
Jean Delvare e47b57380f Temporary fix to w83l785ts mappings. To be removed after
2.8.4 release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2266 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-04 18:55:43 +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
Mark D. Studebaker 7dcb173d2a advance to 3.0.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2264 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-03 02:41:49 +00:00
Jean Delvare b636958ac3 Fix negative voltage limits being swapped in various 2.6 drivers.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2262 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-02 21:16:12 +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 490feb8a11 Fix broken gl518sm in0 input (Hong-Gunn Chew).
Handle gl518sm fan1 auto in 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2255 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-31 14:08:48 +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 d6294776d4 Separate prefix for NE1619.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2243 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-25 17:26:22 +00:00
Mark M. Hoffman 144d461b27 Undo earlier temp. magnitude workarounds for w83781d vs. kernel 2.6.
The workarounds were obviated by Khali's patch which was merged
	into Linus' tree at 2.6.1-bk6.  Tested here on w83781d - would
	appreciate testing on the other w83's...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2237 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-21 03:42:07 +00:00
Jean Delvare 7ba6bd5b1d Fix it87 hyst -> low. Closes tickets #1527 and #1528.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2230 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-18 16:28:32 +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 bf8d5f1305 Change the way the lm90 driver handles hysteresis. Now similar
to the 2.6 version of the driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2210 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-09 21:26:54 +00:00
Jean Delvare 28c6adc439 Reword the "Can't access /proc file" error message so that
Linux 2.6 users don't get confused. Update the FAQ accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2208 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-09 21:09:58 +00:00
Jean Delvare a456f4a784 Remove alarms exceptions (via686a and it87) not needed anymore
in Linux 2.6.1.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2207 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-09 19:27:40 +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
Mark M. Hoffman f77ae36f6d Updates for ASB100: remove "beeps" and other cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2202 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-05 03:50:26 +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 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare 7baac5cdef Add W83L785TS-S support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2181 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-15 21:24:09 +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 46f0afa134 add guidance on major number from
Sergey Vlasov <vsu@altlinux.ru>
      Advance minor number to 1 (3.0.1)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2163 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 20:19:38 +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 24c728587e Fix as99127f's temp_max3 (sysfs).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2126 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 16:29:42 +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
Mark D. Studebaker bd719fa164 put in more exceptions to match 2.6.0-test8/9/10 sysfs names and mags
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2093 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-26 02:02:37 +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
Jean Delvare 4277208906 Remove nasty comment. No, freeing memory is not "strictly
optional."


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2090 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-23 21:26:37 +00:00
Jean Delvare 44ff677255 Fix memory leak.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2088 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-23 21:20:57 +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 5b3e375ef9 add sysfs mappings for non-standard via686a inx
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2080 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 04:06:48 +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 8b28191e86 add back non-standard sysmag for w83781d temps, as this is what
is in kernel right now (2.6.0-test8/test9). Also good for testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2075 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-19 03:10:41 +00:00