Skip to content

Commit d2f3ab5

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
platform_data/mlxreg: Extend core platform structure
Add 'capability' field to structure 'mlxreg_core_platform_data'. The purpose of this filed to indicate the actual number of the components within the particular group. Such components could be, for example the number of the FAN drawers. Some systems are equipped with FAN drawers with one tachometer inside, others with FAN drawers with several tachometers inside. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20200923172053.26296-5-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 638eae9 commit d2f3ab5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/platform_data/mlxreg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ struct mlxreg_core_item {
109109
* @features: supported features of device;
110110
* @version: implementation version;
111111
* @identity: device identity name;
112+
* @capability: device capability register;
112113
*/
113114
struct mlxreg_core_platform_data {
114115
struct mlxreg_core_data *data;
@@ -117,6 +118,7 @@ struct mlxreg_core_platform_data {
117118
u32 features;
118119
u32 version;
119120
char identity[MLXREG_CORE_LABEL_MAX_SIZE];
121+
u32 capability;
120122
};
121123

122124
/**

0 commit comments

Comments
 (0)