mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
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:
1 parent
b491ba49d4
commit
c00e21cf38
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user