mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
25 lines
593 B
C
25 lines
593 B
C
/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
|
|
/*
|
|
* Mellanox I2C multiplexer support in CPLD
|
|
*
|
|
* Copyright (C) 2016-2020 Mellanox Technologies
|
|
*/
|
|
|
|
#ifndef _LINUX_I2C_MLXCPLD_H
|
|
#define _LINUX_I2C_MLXCPLD_H
|
|
|
|
/* Platform data for the CPLD I2C multiplexers */
|
|
|
|
/* mlxcpld_mux_plat_data - per mux data, used with i2c_register_board_info
|
|
* @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 *chan_ids;
|
|
int num_adaps;
|
|
int sel_reg_addr;
|
|
};
|
|
|
|
#endif /* _LINUX_I2C_MLXCPLD_H */
|