Jean Delvare
70317e1a0e
The way we use sensors_feature_get_type() is rather suboptimal. It is
...
first called during the library initialization to generate the feature
tables. Then it is called again by sensors itself. This is because we
do not store the result the first time. I propose that we add a type
field to struct sensors_feature_data, where libsensors would store
the result of sensors_feature_get_type(). That way, the application
can get the information without calling sensors_feature_get_type()
again.
This change has the following benefits:
* Obviously, a small speed-up.
* sensors_feature_get_type() can be removed from the public interface.
This means that we can turn it into something that fits the
libsensors needs better, allowing for more optimizations (see next
patches.)
Note: the patch looks bigger that it really is, because I had to move
definitions around in sensors.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4629 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-19 20:46:09 +00:00
Jean Delvare
ac5ae18fe7
Drop the package target.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4628 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-19 16:59:16 +00:00
Jean Delvare
ee8268e390
Don't sort the same list twice.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4627 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-19 07:30:51 +00:00
Jean Delvare
3ac6681d72
Fix the 'ALARM' text alignment in the dme1737 print temp routine.
...
Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4626 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:04:50 +00:00
Jean Delvare
226dffd064
Whitespace cleaups (backport from Linux 2.6).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4625 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:02:42 +00:00
Jean Delvare
57e38757f1
Add ATI SB700 support to the i2c-piix4 driver. This is a backport from
...
a Linux 2.6 patch by Henry Su.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4624 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:01:35 +00:00
Jean Delvare
7e3b183eab
Delete many unused defines. Backport from Linux 2.6.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4623 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 20:58:12 +00:00
Philip Edelbrock
d4e5a7cf44
Bump up version in version.h
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4621 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-17 05:11:47 +00:00
Philip Edelbrock
fa9a8b9958
Bump up minor version.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4619 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-17 05:07:40 +00:00
Philip Edelbrock
707bff78ad
Prep for 2.10.4
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4618 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-17 05:05:33 +00:00
Jean Delvare
fd6fc535ab
No special treatment is needed for the name attribute.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4616 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-16 12:08:00 +00:00
Jean Delvare
4c2f4416fb
Explicitly silent eeprom and ddcmon. libsensors still supports them and
...
will present them to us for older kernels (<= 2.6.13). We don't want
to display them as unknown chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4615 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 19:18:37 +00:00
Jean Delvare
8eaa3767b1
Warning fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4614 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 18:55:14 +00:00
Jean Delvare
f2f170a903
Warning fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4613 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 17:19:47 +00:00
Jean Delvare
e251c94f60
Warning fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4612 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:59:50 +00:00
Jean Delvare
d73a25b166
Don't sort the same list twice.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4611 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:32:56 +00:00
Jean Delvare
c100b4f38b
Don't add non-sensor I2C chips to the list of detected I2C chips. Even
...
if we discard them later, their presence in the list can prevent the
"no sensors found" event from triggering. It also causes the script to
suggest loading i2c bus drivers which are not needed for hardware
monitoring.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4610 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:29:52 +00:00
Jean Delvare
7659b47112
Don't add non-sensor I2C chips to the list of detected I2C chips. Even
...
if we discard them later, their presence in the list can prevent the
"no sensors found" event from triggering. It also causes the script to
suggest loading i2c bus drivers which are not needed for hardware
monitoring.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4609 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:28:39 +00:00
Jean Delvare
44b541a1e8
Fix broken links to datasheets.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4608 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-13 14:57:31 +00:00
Jean Delvare
91d6d664ed
Fix broken links to Analog Devices website.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4607 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-13 14:53:31 +00:00
Jean Delvare
7033c61200
Fix broken links to Analog Devices website.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4606 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-13 14:52:44 +00:00
Jean Delvare
356e03f000
Add missing static marker.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4605 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-13 11:05:43 +00:00
Jean Delvare
02b58be2e8
Add Fintek F71806FG and F71862FG detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4604 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 21:09:32 +00:00
Jean Delvare
0a90b248d2
Add Fintek F71806FG and F71862FG detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4603 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 21:08:36 +00:00
Jean Delvare
7b8fdf0188
Advertise and document libsensors_version.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4602 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 19:55:06 +00:00
Jean Delvare
f905e5f242
Delete LM_DATE and libsensors_date.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4601 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 19:38:14 +00:00
Hans de Goede
d5d0476273
remove f71882fg example config fan2-4 ignore lines and add labels, fix typo in Battery label
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4600 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-09 12:54:54 +00:00
Hans de Goede
cb5d52fccd
remove f71882fg example config fan2-4 ignore lines and add labels, fix typo in Battery label
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4599 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-09 12:53:20 +00:00
Jean Delvare
e45b873981
Delete unused function sensors_get_sub_feature_by_type().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4598 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-09 11:20:47 +00:00
Jean Delvare
867b8453f2
Add more known SMSC Super IO chips to sensors-detect. Also sort
...
the list of SMSC chips by chip name. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4597 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 20:54:33 +00:00
Jean Delvare
7655f7fb97
Adds more known SMSC Super IO chips to sensors-detect. Also sort
...
the list of SMSC chips by chip name. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4596 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 20:48:03 +00:00
Hans de Goede
712748f659
Handle chips who return the beta value as temp sensor type
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4595 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 18:59:16 +00:00
Jean Delvare
a2b7c5b0b1
Drop reference to mkdev.sh.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4594 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 12:01:23 +00:00
Jean Delvare
a83ef92c9a
Delete mkdev.sh. i2c device nodes are created by devfs or udev on most
...
2.6 kernel-based systems, for others they should have been created at
system installation time. If they are missing, sensors-detect will run
MAKEDEV to create them.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4593 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 12:00:55 +00:00
Jean Delvare
6b18074f92
Only write integer values to pwm files.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4592 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 11:19:10 +00:00
Jean Delvare
982afbce24
Only write integer values to pwm files.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4591 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 11:17:26 +00:00
Jean Delvare
cd0b8c3489
Delete fancontrol.pl. The reason given when it was added was that the
...
bash implementation was spawning too many child processes, and that
was true, but this has been addressed since. And I don't particularly
enjoy maintaining two scripts doing exactly the same thing.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4590 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 10:13:11 +00:00
Jean Delvare
759098c8f8
Use linear interpolation instead of quadratic to choose PWM values.
...
This is simpler and will work better in most cases. For example this
should address at least part of ticket #2224 . It seems that quadratic
was used to lower the average noise level, but I don't think this is a
valid reason. The new MINPWM and MAXPWM parameters will also let the
user control the noise level if really needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4589 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 10:04:48 +00:00
Jean Delvare
fd9077bd03
Use linear interpolation instead of quadratic to choose PWM values.
...
This is simpler and will work better in most cases. For example this
should address at least part of ticket #2224 . It seems that quadratic
was used to lower the average noise level, but I don't think this is a
valid reason. The new MINPWM and MAXPWM parameters will also let the
user control the noise level if really needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4588 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 10:01:50 +00:00
Hans de Goede
caa92d7b1e
add check for /dev/MAKEDEV
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4587 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 05:56:43 +00:00
Hans de Goede
f51cffe559
add check for /dev/MAKEDEV
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4586 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-08 05:55:17 +00:00
Jean Delvare
d33285b3b0
Cleanup the module.conf / modprobe.conf selection code.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4585 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 20:04:59 +00:00
Jean Delvare
cc286d3091
Cleanup the module.conf / modprobe.conf selection code.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4584 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 19:56:58 +00:00
Hans de Goede
2df9dce47d
ommit not reported types from f71882fg temp print routine
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4581 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 17:37:19 +00:00
Hans de Goede
15f1274aef
add f71882fg sensors.conf.eg entry
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4580 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 16:57:07 +00:00
Hans de Goede
cb08148e9e
add f71882fg sensors.conf.eg entry, add f71882fg and abituguru3 support to CHANGES
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4579 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 16:55:47 +00:00
Jean Delvare
3549a94232
Right-align FAULT flags.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4578 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 15:26:12 +00:00
Jean Delvare
2296f9b738
Add the recent donations from Observit.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4577 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 08:29:48 +00:00
Jean Delvare
41d39284d8
Add the recent donations from Observit.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4576 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 08:27:47 +00:00
Jean Delvare
8f50fd32b4
Minor optimization in print_lm85().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4575 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-07 08:11:09 +00:00