Jean Delvare
3957bad83f
Prevent null pointer dereference. Reported by Tim Toohey.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2346 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-08 18:03:42 +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
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
Mark D. Studebaker
36c7305e78
use /sys/class/i2c-dev/i2c-x/name file if available;
...
solves problem with drivers that have multiple busses;
requires Greg's patch (for kernel 2.6.5?)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2341 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-06 20:27:41 +00:00
Philip Edelbrock
3a0255d125
(Phil) Tag and release 2.8.5
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2339 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 23:16:09 +00:00
Mark D. Studebaker
2edf79f350
don't print device ID if 0
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2338 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:31:10 +00:00
Mark D. Studebaker
a8b840a15c
updates
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2337 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:25:11 +00:00
Mark D. Studebaker
96d4fcced7
#ifndef driverid
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2336 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:23:35 +00:00
Mark D. Studebaker
731ecf3db3
remove root uid/gid from install in Makefiles
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2335 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:16:00 +00:00
Mark D. Studebaker
a30f070533
correct driver ID
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2334 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:13:39 +00:00
Mark D. Studebaker
7b6c302155
increase max SDRs
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2333 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-05 04:10:55 +00:00
Jean Delvare
2d4cc0bd4c
Updates.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2332 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-03 22:45:13 +00:00
Jean Delvare
f5f14fb585
Fix 47B27x device ID.
...
Do not hardcode ports in exit_superio().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2331 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-03 20:19:10 +00:00
Jean Delvare
476217a3b3
More Super IO chips. Reworked exit sequences policy.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2330 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-02 21:05:44 +00:00
Jean Delvare
b1d14ec032
Enable IT8705 and Nat'l PC87366 Super IO detection.
...
Use the same escape sequence for all Super IO chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2329 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-29 22:14:01 +00:00
Jean Delvare
55903e4677
Remove now useless subclient detection code.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2328 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-29 18:43:53 +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
526bfecfe2
Typo.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2325 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-29 08:20:08 +00:00
Mark D. Studebaker
e1b94e8571
spelling fixes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2324 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 23:00:22 +00:00
Jean Delvare
b769ea66c5
Fix broken superio exit sequence handling.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2323 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 22:00:35 +00:00
Jean Delvare
e8eeb5f14a
Updates.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2322 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 18:55:16 +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
Jean Delvare
1288153498
reset_it87 is now called reset.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2320 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 16:41:56 +00:00
Mark D. Studebaker
520da35172
fix comment
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2319 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 16:34:08 +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
0c16cd1d37
Add xsensors.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2317 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 16:00:28 +00:00
Jean Delvare
6b2f1e18bb
Backport Takeru Komoriya's changes from Linux 2.6. This fixes
...
loading it87 with reset=1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2316 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 15:46:46 +00:00
Jean Delvare
f0ab72d26c
Tell Linux 2.6 users that they may need i2c_sensor.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2315 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-27 19:00:10 +00:00
Jean Delvare
2cc6f7308f
Remove wrong comment in Vaio eeprom handling.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2314 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-27 06:43:56 +00:00
Jean Delvare
03f3e08d48
w83781d driver doesn't support ASB100 anymore.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2313 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-23 20:25:27 +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
e6d99aedb0
Consider it possible that sensor type is 0 (unused).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2311 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 17:48:16 +00:00
Mark D. Studebaker
f0807af8d1
remove 1211/8231 in6 and temp1
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2310 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 15:21:40 +00:00
Jean Delvare
8e5881f81c
Fix typo. Stupid me.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2309 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 10:43:45 +00:00
Jean Delvare
f50b5122b6
Comments to it87 sensor type selection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2308 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 10:43:16 +00:00
Jean Delvare
8de138348a
Update documentation about the sensor type selection. Suggested
...
by Takeru Komoriya.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2307 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 10:24:13 +00:00
Jean Delvare
fb5229a046
Better interpretation of it87 temperature sensor types.
...
(Takeru Komoriya)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2306 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 10:18:14 +00:00
Jean Delvare
cbbb80616e
Update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2305 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 09:09:09 +00:00
Mark D. Studebaker
154c50fa86
don't export unused in6 and temp1
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2304 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 04:09:15 +00:00
Jean Delvare
1397060c61
Add GeForce FX 5600 as supported by rivatv.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2303 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 18:50:57 +00:00
Jean Delvare
f7b2534fba
Preserve other bits when forcing temp2/3 to comparator mode.
...
Backported from Linux 2.6. Requested by Keith Duthie.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2302 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 14:10:31 +00:00
Jean Delvare
ed4282e27c
Add support for W83L785R. Improve W83L784R/AR.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2301 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 13:51:57 +00:00
Jean Delvare
60ad1861de
Backport oops fix from Linux 2.6 (freeing nonexistent resource
...
on module unload if the hardware isn't present).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2300 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 07:38:43 +00:00
Jean Delvare
8422454e8e
Fix i2c bus not being unregistered on module unload.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2299 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-20 21:32:18 +00:00
Jean Delvare
c74c4df722
Define driver ID if i2c-id.h doesn't have it yet.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2298 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-20 21:28:03 +00:00
Jean Delvare
b195e03968
Update manufacturer identification list.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2297 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-20 19:09:44 +00:00
Jean Delvare
dab9e3d016
Update Adrian Baugh's entry. Suggested by Peter Dyballa.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2296 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-20 19:05:48 +00:00