Reorder the members of the structures sensors_feature_data and

sensors_bus_id. This prevents wasting space with padding on 64-bit
systems, saving some memory (128 bytes for sensors_bus_id, nothing
yet for sensors_feature_data but it will come later).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4733 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-08-30 21:23:22 +00:00
1 parent b491ba49d4
commit c00e21cf38
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -113,8 +113,8 @@ typedef struct sensors_chip {
/* Config file bus declaration: the bus type and number, combined with adapter
name */
typedef struct sensors_bus {
sensors_bus_id bus;
char *adapter;
sensors_bus_id bus;
int lineno;
} sensors_bus;
+2 -2
View File
@@ -104,10 +104,10 @@ they point to internal structures!
This structure is used when you want to get all features of a specific chip.
.br
\fBtypedef struct sensors_feature_data {
.br
int number;
.br
const char *name;
.br
int number;
.br
sensors_feature_type type;
.br
+1 -1
View File
@@ -159,8 +159,8 @@ typedef enum sensors_feature_type {
/* This structure is used when you want to get all features of a specific
chip. */
typedef struct sensors_feature_data {
int number;
char *name;
int number;
sensors_feature_type type;
int mapping;
int compute_mapping;