Skip to content

Commit bc8de07

Browse files
vadimp-nvidiagroeck
authored andcommitted
hwmon: (mlxreg-fan) Extend the maximum number of tachometers
Extend support of maximum tachometers from 12 to 14 in order to support new systems, equipped with more fans. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20210916194719.871413-2-vadimp@nvidia.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent e8ac01e commit bc8de07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/hwmon/mlxreg-fan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <linux/regmap.h>
1313
#include <linux/thermal.h>
1414

15-
#define MLXREG_FAN_MAX_TACHO 12
15+
#define MLXREG_FAN_MAX_TACHO 14
1616
#define MLXREG_FAN_MAX_STATE 10
1717
#define MLXREG_FAN_MIN_DUTY 51 /* 20% */
1818
#define MLXREG_FAN_MAX_DUTY 255 /* 100% */
@@ -266,6 +266,8 @@ static const struct hwmon_channel_info *mlxreg_fan_hwmon_info[] = {
266266
HWMON_F_INPUT | HWMON_F_FAULT,
267267
HWMON_F_INPUT | HWMON_F_FAULT,
268268
HWMON_F_INPUT | HWMON_F_FAULT,
269+
HWMON_F_INPUT | HWMON_F_FAULT,
270+
HWMON_F_INPUT | HWMON_F_FAULT,
269271
HWMON_F_INPUT | HWMON_F_FAULT),
270272
HWMON_CHANNEL_INFO(pwm,
271273
HWMON_PWM_INPUT),

0 commit comments

Comments
 (0)