diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2018-12-13 00:59:14 +0100 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2019-01-26 20:08:25 +0100 |
commit | 946e4e02b11889cb161b15ff4712a8ba21a50eb6 (patch) | |
tree | 63f5ef2df597d39e79d7f00e50af2d5748bb2ecb /include | |
parent | platform_data/mlxreg: Document fixes for core platform data (diff) | |
download | linux-946e4e02b11889cb161b15ff4712a8ba21a50eb6.tar.xz linux-946e4e02b11889cb161b15ff4712a8ba21a50eb6.zip |
platform_data/mlxreg: Add capability field to core platform data
Add capability field to "mlxreg_core_platform_data" structure.
The purpose of this register is to provide additional info to platform
driver through the atribute related capability register.
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/mlxreg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h index d823713f94ec..1b2f86f96743 100644 --- a/include/linux/platform_data/mlxreg.h +++ b/include/linux/platform_data/mlxreg.h @@ -61,6 +61,7 @@ struct mlxreg_hotplug_device { * @reg: attribute register; * @mask: attribute access mask; * @bit: attribute effective bit; + * @capability: attribute capability register; * @mode: access mode; * @np - pointer to node platform associated with attribute; * @hpdev - hotplug device data; @@ -72,6 +73,7 @@ struct mlxreg_core_data { u32 reg; u32 mask; u32 bit; + u32 capability; umode_t mode; struct device_node *np; struct mlxreg_hotplug_device hpdev; |