Jean Delvare
d4c69b1468
bash should no longer be needed at build time.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4877 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 14:02:01 +00:00
Jean Delvare
bc0cfc7a32
Fold QUICKSTART into INSTALL.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4876 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 13:30:38 +00:00
Jean Delvare
59d4afd8e1
Update for version 3. List the build-time and run-time dependencies.
...
Drop all the instructions regarding kernel modules compilation. Drop
documentation about Makefile variables, they are already documented
in the Makefile itself.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4875 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 13:03:38 +00:00
Jean Delvare
05d5475452
Fold BACKGROUND into README.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4874 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 12:13:29 +00:00
Jean Delvare
08bcb3a5ce
Update README for version 3. Delete the list of supported chips
...
(it depends on the kernel version only). Drop references to I2C and SMBus.
Fold README.directories into README.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4873 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 12:02:36 +00:00
Jean Delvare
a6e9ec9063
Strip for version 3. Ultimately the contents of this file should be
...
folded into README.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4872 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 11:31:37 +00:00
Jean Delvare
01c2d7d046
SENSORS_NO_MAPPING is no longer used, delete it.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4871 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 11:22:24 +00:00
Jean Delvare
ac2c4eb65b
Move lm_sensors.lsm to doc/developers. Users don't really care.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4870 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 10:02:35 +00:00
Jean Delvare
5d8fa82956
Minor update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4868 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:44:48 +00:00
Jean Delvare
55eccd169a
Drop references to makefile targets which no longer exist.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4867 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:44:10 +00:00
Jean Delvare
6f29063fdc
Delete. Most of the items are for kernel drivers, this information no longer
...
belongs there. The rest is hopefully implemented now. Next TODOs will be
handled in trac.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4866 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:27:10 +00:00
Jean Delvare
6270516240
lm-sensors should now be safe to use on Thinkpad laptops.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4865 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:25:07 +00:00
Jean Delvare
b60f5a718e
Update for version 3.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4864 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:15:28 +00:00
Jean Delvare
286c332071
The kernel directory is no more.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4863 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 09:14:38 +00:00
Jean Delvare
56e301c8b5
Document struct_feature.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4860 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 18:00:20 +00:00
Jean Delvare
55a29cc2ce
Reserve some room in struct sensors_feature for future extension.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4859 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 17:48:57 +00:00
Jean Delvare
d1b374cc38
Renumber feature and subfeature types to leave more room if we later
...
need to add more feature or subfeature types.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4858 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 17:42:27 +00:00
Jean Delvare
df027fb0d5
Drop all references to the MBM website, it's gone now.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4857 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 16:37:51 +00:00
Jean Delvare
55e467b151
Don't arbitrarily write errors to stderr. In production mode,
...
simply ignore the errors. In debug mode, call sensors_fatal_error().
As a side note, there is certainly room for improvement in the way
errors are reported by libsensors. sensors_fatal_error() is fatal,
and sensors_parse_error() is too specific, so we lack a more general
error reporting function. printf-like formatting for error messages
would also be a good idea.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4855 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 14:34:42 +00:00
Jean Delvare
ab36c5b0f8
Delete unused SENSORS_ERR_ACCESS.
...
Rename SENSORS_ERR_PROC to the more neutral SENSORS_ERR_KERNEL.
Introduce SENSORS_ERR_NO_DEVS for finer-grained error reporting.
Use SENSORS_ERR_KERNEL and SENSORS_ERR_NO_DEVS where appropriate.
No error message for invalid error codes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4854 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:53:11 +00:00
Jean Delvare
4b6f9ee727
Better error message if configuration file can't be loaded.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4853 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:48:52 +00:00
Jean Delvare
2fea711456
Alignment.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4852 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:33:32 +00:00
Jean Delvare
06a8d04b5d
Preserve error values returned by sensors_read_sysfs_attr() and
...
sensors_write_sysfs_attr().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4851 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 13:17:53 +00:00
Jean Delvare
9ba88a7d1f
Better prototype for get_type_scaling().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4850 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:49:47 +00:00
Jean Delvare
c390c9e29f
Hide warnings about unused parameters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4849 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:47:27 +00:00
Jean Delvare
5742812cfe
Hide a warning in flex-generated file.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4848 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:36:56 +00:00
Jean Delvare
9698d82fd3
Rename sensors_get_label_size() to get_label_size() for consistency.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4847 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:33:12 +00:00
Jean Delvare
e01466d993
New public library function: sensors_get_subfeature(). Applications can
...
use it to retrieve a specific subfeature by type. While it is slighly
less efficient than looping over sensors_get_all_subfeatures(), it
often makes the application code much more elegant.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4846 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:30:28 +00:00
Jean Delvare
c08a168342
Use sensors_lookup_chip() wherever possible, it makes the code
...
more readable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4845 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:24:13 +00:00
Jean Delvare
e55b84392b
Use sensors_lookup_chip() to speed up sensors_lookup_subfeature_name()
...
as well.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4844 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:23:38 +00:00
Jean Delvare
36f5b0dc4d
New internal library function: sensors_lookup_chip(). It looks up a
...
chip in the detected chip list. It is more efficient to do it once
and for all than to do it over and over again in
sensors_lookup_feature_nr() and sensors_lookup_subfeature_nr() as
was done before.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4843 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:23:06 +00:00
Jean Delvare
586cec7fa1
sensors_lookup_subfeature_nr() can now be made static.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4842 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:20:48 +00:00
Jean Delvare
e7c345f4cf
Pass a subfeature structure to sensors_read_sysfs_attr() and
...
sensors_write_sysfs_attr(), rather than a subfeature number, so that
we do not have to lookup the feature number again.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4841 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:20:07 +00:00
Jean Delvare
ba6614624b
There's no rationale for preventing against setting the same
...
subfeature value several times. If the user asks for that, let's just
do it. Otherwise we have a performance penalty for all other users.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4840 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:19:29 +00:00
Jean Delvare
67d3060317
We can plain skip the feature lookup and compute statement search for
...
subfeatures with no compute mapping.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4839 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:18:46 +00:00
Jean Delvare
da7b4e48da
Introduce a separate type for main features. Make subfeatures map to
...
the real main feature rather than the first subfeature.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4838 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:16:50 +00:00
Jean Delvare
65f1d1f1cd
Rename subfeature types from *_FEATURE_* to *_SUBFEATURE_*, to better
...
reflect what they represent.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4837 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:12:19 +00:00
Jean Delvare
e13c11d353
Update the comments and symbols in the whole library code to refer to
...
features and subfeatures as appropriate.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4836 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:07:53 +00:00
Jean Delvare
9fe2b3c714
sensors_get_all_features has a single caller now, so fold
...
it thereinto.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4835 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:06:51 +00:00
Jean Delvare
96c914bfda
Define a separate structure to represent main features. This allows
...
for faster main features lookup. One side effect of this change is
that subfeatures can no longer have labels nor be ignored. I do not
think that this is a problem in practice, and actually this makes a
lot of sense.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4834 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:05:16 +00:00
Jean Delvare
bfe337fe76
Store current temperature, voltage and fan values together with
...
the rest of the subfeatures. This makes the code more simple, and
prepares for current values to be subfeatures like any others (i.e.
they can be missing.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4833 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:02:59 +00:00
Jean Delvare
79086fb7b8
Rename struct sensors_feature_data to sensors_subfeature. This is a
...
first step towards a clean separation between main features and
subfeatures.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4832 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:02:22 +00:00
Jean Delvare
eba601a964
Split sensors_get_all_features() into two distinct functions, one to
...
get the list of all main features, and one to get the list of all the
subfeatures of a given main feature. This is a more logical interface for
applications to use. The current implementation is admittedly less than
optimal, because the storage structures weren't meant for it, but this
issue can (and will) be addressed later.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4831 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:00:59 +00:00
Jean Delvare
08a686e3cc
sensors_feature_data and sensors_chip_feature are now the exact
...
same structure, so we can get rid of the former for simpler code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4830 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 11:59:51 +00:00
Jean Delvare
60b50b6cb9
Fix compilation breakage with non-C99 compilers.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4829 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-21 18:15:32 +00:00
Jean Delvare
5bd020ad92
Scan chip features only once at initialization time, rather than on
...
each update. The chip list and chip features do not change until
sensors_cleanup() is called, so there's no point in doing the
same work over and over again.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4828 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-21 12:15:18 +00:00
Jean Delvare
49649fcf05
Restore support for beeps.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4827 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 21:24:12 +00:00
Jean Delvare
9cf1330eb0
Add support for beep features.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4826 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 21:23:19 +00:00
Jean Delvare
36ded1b5fc
Restore support for alarms.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4825 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 21:22:42 +00:00
Jean Delvare
071e4a8008
Rename a few variables to something that makes more sense.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4824 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 16:22:13 +00:00