hwmon: (mlxreg-fan) Extend number of supporetd fans
PATCH 1/1 hwmon: (mlxreg-fan) Extend number of supporetd fans
Some new big modular systems can be equipped with up to 24 fans. Extend maximum number of fans accordingly.
Signed-off-by Vadim Pasternak <[email protected]>
--- drivers/hwmon/mlxreg-fan.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
drivers/hwmon/mlxreg-fan.c +11 -1
@@ -12,7 +12,7 @@#include <linux/regmap.h> #include <linux/thermal.h> -#define MLXREG_FAN_MAX_TACHO 14 +#define MLXREG_FAN_MAX_TACHO 24#define MLXREG_FAN_MAX_PWM 4#define MLXREG_FAN_PWM_NOT_CONNECTED 0xff#define MLXREG_FAN_MAX_STATE 10
@@ -300,6 +300,16 @@ static const struct hwmon_channel_info * const mlxreg_fan_hwmon_info[] = {HWMON_F_INPUT |HWMON_F_FAULT ,HWMON_F_INPUT |HWMON_F_FAULT ,HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , +HWMON_F_INPUT |HWMON_F_FAULT , HWMON_F_INPUT | HWMON_F_FAULT), HWMON_CHANNEL_INFO(pwm, HWMON_PWM_INPUT,
Signature · 1 line
2.20.1
Quoted 5 lines · Vadim Pasternak
Some new big modular systems can be equipped with up to 24 fans. Extend maximum number of fans accordingly.
Signed-off-by Vadim Pasternak <[email protected]>---
Applied.
Thanks,
Guenter