Skip to content

Commit cf79177

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform/x86: mlx-platform: Fix item counter assignment for MSN2700/ComEx system
Fix array names to match assignments for data items and data items counter in 'mlxplat_mlxcpld_comex_items' structure for: .data = mlxplat_mlxcpld_default_pwr_items_data, .count = ARRAY_SIZE(mlxplat_mlxcpld_pwr), and .data = mlxplat_mlxcpld_default_fan_items_data, .count = ARRAY_SIZE(mlxplat_mlxcpld_fan), Replace: - 'mlxplat_mlxcpld_pwr' by 'mlxplat_mlxcpld_default_pwr_items_data' for ARRAY_SIZE() calculation. - 'mlxplat_mlxcpld_fan' by 'mlxplat_mlxcpld_default_fan_items_data' for ARRAY_SIZE() calculation. Fixes: bdd6e15 ("platform/x86: mlx-platform: Add support for new system type") Signed-off-by: Vadim Pasternak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent ba4939f commit cf79177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/mlx-platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_comex_items[] = {
495495
.aggr_mask = MLXPLAT_CPLD_AGGR_MASK_CARRIER,
496496
.reg = MLXPLAT_CPLD_LPC_REG_PWR_OFFSET,
497497
.mask = MLXPLAT_CPLD_PWR_MASK,
498-
.count = ARRAY_SIZE(mlxplat_mlxcpld_pwr),
498+
.count = ARRAY_SIZE(mlxplat_mlxcpld_default_pwr_items_data),
499499
.inversed = 0,
500500
.health = false,
501501
},
@@ -504,7 +504,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_comex_items[] = {
504504
.aggr_mask = MLXPLAT_CPLD_AGGR_MASK_CARRIER,
505505
.reg = MLXPLAT_CPLD_LPC_REG_FAN_OFFSET,
506506
.mask = MLXPLAT_CPLD_FAN_MASK,
507-
.count = ARRAY_SIZE(mlxplat_mlxcpld_fan),
507+
.count = ARRAY_SIZE(mlxplat_mlxcpld_default_fan_items_data),
508508
.inversed = 1,
509509
.health = false,
510510
},

0 commit comments

Comments
 (0)