Skip to content

Commit 13e52e6

Browse files
mellanoxbmcandy-shev
authored andcommitted
platform_data/mlxreg: Add support for complex attributes
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 92d020f commit 13e52e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/platform_data/mlxreg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ struct mlxreg_hotplug_device {
8080
* @hpdev - hotplug device data;
8181
* @health_cntr: dynamic device health indication counter;
8282
* @attached: true if device has been attached after good health indication;
83+
* @regnum: number of registers occupied by multi-register attribute;
8384
*/
8485
struct mlxreg_core_data {
8586
char label[MLXREG_CORE_LABEL_MAX_SIZE];
@@ -92,6 +93,7 @@ struct mlxreg_core_data {
9293
struct mlxreg_hotplug_device hpdev;
9394
u8 health_cntr;
9495
bool attached;
96+
u8 regnum;
9597
};
9698

9799
/**

0 commit comments

Comments
 (0)