OSDN Git Service

platform_data/mlxreg: Add support for complex attributes
authorVadim Pasternak <vadimp@mellanox.com>
Tue, 14 Jul 2020 12:01:58 +0000 (15:01 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 09:45:07 +0000 (12:45 +0300)
Add new field 'regnum' to the structure 'mlxreg_core_data' to specify
the number of registers occupied by multi-register attribute.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
include/linux/platform_data/mlxreg.h

index b8da8ae..a2adc3a 100644 (file)
@@ -80,6 +80,7 @@ struct mlxreg_hotplug_device {
  * @hpdev - hotplug device data;
  * @health_cntr: dynamic device health indication counter;
  * @attached: true if device has been attached after good health indication;
+ * @regnum: number of registers occupied by multi-register attribute;
  */
 struct mlxreg_core_data {
        char label[MLXREG_CORE_LABEL_MAX_SIZE];
@@ -92,6 +93,7 @@ struct mlxreg_core_data {
        struct mlxreg_hotplug_device hpdev;
        u8 health_cntr;
        bool attached;
+       u8 regnum;
 };
 
 /**