mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
The sensors library relied on one structure having an identical layout in
memory as part of another structure. This rather large patch fixes that by making the smaller piece an explicit member of the larger. I brought this patch into sync with the latest SVN, and tested it by comparing objects files from the tree pre- and post- patch. The remaining 99% of the credit goes to Bob Schlärmann <bob2@dsv.nl> for creating the original patch... thanks Bob! * Bob Schlärmann <bob2@dsv.nl> [2006-12-24 18:29:39 +0100]: > The following patch changes all of the lib/chips.c entries and any function > that uses sensors_chip_feature. Most of the conversion was done through a > perl script, so if you don't agree with the syntax it'll be easy to change. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4287 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b162d642a9
commit
6968eb16fe
5 files changed
+5451
-5646
No files matched your search
+1
-5
@@ -150,11 +150,7 @@ typedef struct sensors_proc_chips_entry {
|
||||
Scaling can be positive or negative but negative values aren't
|
||||
very useful because the driver can scale that direction itself. */
|
||||
typedef struct sensors_chip_feature {
|
||||
int number;
|
||||
const char *name;
|
||||
int logical_mapping;
|
||||
int compute_mapping;
|
||||
int mode;
|
||||
sensors_feature_data data;
|
||||
int sysctl;
|
||||
int offset;
|
||||
int scaling;
|
||||
|
||||
Reference in new issue
Block a user