Skip to content

Commit 17727a3

Browse files
mellanoxbmcandy-shev
authored andcommitted
platform_data/mlxreg: Add presence register field for FAN devices
Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to provide the number FAN drawers equpped within the system. The purpose is to allow mapping between FAN drawers and FAN rotors (tachometer), since FAN drawer can be eqipped with a few rotors. Signed-off-by: Vadim Pasternak <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent f6fae31 commit 17727a3

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
@@ -75,6 +75,7 @@ struct mlxreg_hotplug_device {
7575
* @mask: attribute access mask;
7676
* @bit: attribute effective bit;
7777
* @capability: attribute capability register;
78+
* @reg_prsnt: attribute presence register;
7879
* @mode: access mode;
7980
* @np - pointer to node platform associated with attribute;
8081
* @hpdev - hotplug device data;
@@ -88,6 +89,7 @@ struct mlxreg_core_data {
8889
u32 mask;
8990
u32 bit;
9091
u32 capability;
92+
u32 reg_prsnt;
9193
umode_t mode;
9294
struct device_node *np;
9395
struct mlxreg_hotplug_device hpdev;

0 commit comments

Comments
 (0)