aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2020-07-14 15:02:02 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-07-15 12:45:07 +0300
commit17727a3b4879324818ea6f2ebc3f68432173ce24 (patch)
tree8c919dd87754ac1e939db811b202164cbb7a2f80 /include/linux/platform_data
parentDocumentation/ABI: Add new attribute for mlxreg-io sysfs interfaces (diff)
downloadwireguard-linux-17727a3b4879324818ea6f2ebc3f68432173ce24.tar.xz
wireguard-linux-17727a3b4879324818ea6f2ebc3f68432173ce24.zip
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 <vadimp@mellanox.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mlxreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
index a2adc3ad45f2..9cffa9a64ab3 100644
--- a/include/linux/platform_data/mlxreg.h
+++ b/include/linux/platform_data/mlxreg.h
@@ -75,6 +75,7 @@ struct mlxreg_hotplug_device {
* @mask: attribute access mask;
* @bit: attribute effective bit;
* @capability: attribute capability register;
+ * @reg_prsnt: attribute presence register;
* @mode: access mode;
* @np - pointer to node platform associated with attribute;
* @hpdev - hotplug device data;
@@ -88,6 +89,7 @@ struct mlxreg_core_data {
u32 mask;
u32 bit;
u32 capability;
+ u32 reg_prsnt;
umode_t mode;
struct device_node *np;
struct mlxreg_hotplug_device hpdev;