projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ac01e
)
hwmon: (mlxreg-fan) Extend the maximum number of tachometers
author
Vadim Pasternak
<vadimp@nvidia.com>
Thu, 16 Sep 2021 19:47:17 +0000
(22:47 +0300)
committer
Guenter Roeck
<linux@roeck-us.net>
Tue, 12 Oct 2021 14:22:37 +0000
(07:22 -0700)
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>
drivers/hwmon/mlxreg-fan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/mlxreg-fan.c
b/drivers/hwmon/mlxreg-fan.c
index 89fe7b9fe26be3e837f879b2dad1a97fba6de9ea..0f5b109817a7dd28b25fb94027dc5fa2eee60653 100644
(file)
--- a/
drivers/hwmon/mlxreg-fan.c
+++ b/
drivers/hwmon/mlxreg-fan.c
@@
-12,7
+12,7
@@
#include <linux/regmap.h>
#include <linux/thermal.h>
-#define MLXREG_FAN_MAX_TACHO 1
2
+#define MLXREG_FAN_MAX_TACHO 1
4
#define MLXREG_FAN_MAX_STATE 10
#define MLXREG_FAN_MIN_DUTY 51 /* 20% */
#define MLXREG_FAN_MAX_DUTY 255 /* 100% */
@@
-266,6
+266,8
@@
static const struct hwmon_channel_info *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_CHANNEL_INFO(pwm,
HWMON_PWM_INPUT),