]> Git Repo - J-linux.git/commitdiff
platform/x86: mlx-platform: Add capability field to platform FAN description
authorVadim Pasternak <[email protected]>
Wed, 23 Sep 2020 17:20:53 +0000 (20:20 +0300)
committerHans de Goede <[email protected]>
Wed, 7 Oct 2020 21:21:04 +0000 (23:21 +0200)
Set 'capability' field to FAN core platform data..
The content of 'capability' register allows to set the mapping between
the drawers and tachometers.
The motivation is to avoid adding a new code in the future in order to
distinct between the systems types supporting a different kinds of the
FAN drawers.

Signed-off-by: Vadim Pasternak <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
drivers/platform/x86/mlx-platform.c

index 04a745095c37991bdab206c2928e83c63b41830c..986ad3dda1c108b12d823055aafbd705aec6a12d 100644 (file)
@@ -1939,6 +1939,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_fan_data[] = {
 static struct mlxreg_core_platform_data mlxplat_default_fan_data = {
                .data = mlxplat_mlxcpld_default_fan_data,
                .counter = ARRAY_SIZE(mlxplat_mlxcpld_default_fan_data),
+               .capability = MLXPLAT_CPLD_LPC_REG_FAN_DRW_CAP_OFFSET,
 };
 
 /* Watchdog type1: hardware implementation version1
This page took 0.056468 seconds and 4 git commands to generate.