diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2024-08-02 08:32:14 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2024-08-02 08:32:14 +0200 |
commit | 9627fd587c9aa066d4ce6e852b26950030f9c3cd (patch) | |
tree | 50375cab018b3b62076bf4a6a674fca7613db68b /src/cim/cim_msr.c | |
parent | 8b6ec6bb08fa9c3b19753acb436bbb8ecfae9233 (diff) | |
parent | 7047b6da264e946e77eeee4080d194c807562d68 (diff) |
Merge remote-tracking branch 'origin/master' into obsdobsd
Diffstat (limited to 'src/cim/cim_msr.c')
-rw-r--r-- | src/cim/cim_msr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cim/cim_msr.c b/src/cim/cim_msr.c index d43bc4b..0d3c571 100644 --- a/src/cim/cim_msr.c +++ b/src/cim/cim_msr.c @@ -35,7 +35,7 @@ /* as well as a lookup table for easy device addressing. */ /*--------------------------------------------------------------*/ -GEODELINK_NODE gliu_nodes[24]; +GEODELINK_NODE gliu_node_list[24]; GEODELINK_NODE msr_dev_lookup[MSR_DEVICE_EMPTY]; #define GET_DEVICE_ID(macrohigh, macrolow) ((macrolow >> 12) & 0xFF) @@ -79,7 +79,7 @@ msr_init_table(void) if (return_value == CIM_STATUS_OK) { /* BUILD LOCAL COPY OF THE GEODELINK BUS */ - msr_create_geodelink_table(gliu_nodes); + msr_create_geodelink_table(gliu_node_list); /* CLEAR TABLE STATUS */ @@ -107,7 +107,7 @@ msr_init_table(void) for (i = 0; i < MSR_DEVICE_EMPTY; i++) { if (msr_dev_lookup[i].device_id == MSR_DEVICE_NOTFOUND) { for (j = 0; j < 24; j++) { - if (gliu_nodes[j].device_id == i) + if (gliu_node_list[j].device_id == i) break; } @@ -116,7 +116,7 @@ msr_init_table(void) else { msr_dev_lookup[i].device_id = MSR_DEVICE_PRESENT; msr_dev_lookup[i].address_from_cpu = - gliu_nodes[j].address_from_cpu; + gliu_node_list[j].address_from_cpu; } } } @@ -125,8 +125,8 @@ msr_init_table(void) /* ERROR OUT THE GEODELINK TABLES */ for (i = 0; i < 24; i++) { - gliu_nodes[i].address_from_cpu = 0xFFFFFFFF; - gliu_nodes[i].device_id = MSR_DEVICE_EMPTY; + gliu_node_list[i].address_from_cpu = 0xFFFFFFFF; + gliu_node_list[i].device_id = MSR_DEVICE_EMPTY; } for (i = 0; i < MSR_DEVICE_EMPTY; i++) { |