platform/mellanox: mlxreg-io: Extend number of hwmon attributes
authorVadim Pasternak <vadimp@nvidia.com>
Sat, 2 Oct 2021 09:32:34 +0000 (12:32 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 08:41:55 +0000 (10:41 +0200)
Extend maximum number of the attributes, exposed to 'sysfs'.
It is requires in order to support modular systems, which
provide more attributes for system control, statuses and info.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/20211002093238.3771419-6-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxreg-io.c

index a916cd89cbbeddf99272f26012a790d43ce08f7b..2c2686d5c2fc91420b9178d587208b8b5db86a6c 100644 (file)
@@ -18,7 +18,7 @@
 
 /* Attribute parameters. */
 #define MLXREG_IO_ATT_SIZE     10
-#define MLXREG_IO_ATT_NUM      48
+#define MLXREG_IO_ATT_NUM      96
 
 /**
  * struct mlxreg_io_priv_data - driver's private data: