diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2021-02-08 23:16:03 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-02-09 13:35:28 +0300 |
commit | cae5216387d18c888f9f38a0cf5be341a0af75a6 (patch) | |
tree | 23352f4404394533086945cb5e34728847af0b31 /include/linux/platform_data/mlxcpld.h | |
parent | 81566938083af15aec75201293cf6047bb04f4d3 (diff) | |
download | linux-cae5216387d18c888f9f38a0cf5be341a0af75a6.tar.xz |
i2c: mux: mlxcpld: Get rid of adapter numbers enforcement
Do not set the argument 'force_nr' of i2c_mux_add_adapter() routine,
instead provide argument 'chan_id'.
Rename mux ids array from 'adap_ids' to 'chan_ids'.
The motivation is to prepare infrastructure to be able to:
- Create only the child adapters which are actually needed - for which
channel ids are specified.
- To assign 'nrs' to these child adapters dynamically, with no 'nr'
enforcement.
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/linux/platform_data/mlxcpld.h')
-rw-r--r-- | include/linux/platform_data/mlxcpld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/mlxcpld.h b/include/linux/platform_data/mlxcpld.h index e6c18bf017dd..04d93c563c04 100644 --- a/include/linux/platform_data/mlxcpld.h +++ b/include/linux/platform_data/mlxcpld.h @@ -11,12 +11,12 @@ /* Platform data for the CPLD I2C multiplexers */ /* mlxcpld_mux_plat_data - per mux data, used with i2c_register_board_info - * @adap_ids - adapter array + * @chan_ids - channels array * @num_adaps - number of adapters * @sel_reg_addr - mux select register offset in CPLD space */ struct mlxcpld_mux_plat_data { - int *adap_ids; + int *chan_ids; int num_adaps; int sel_reg_addr; }; |