mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-17 06:39:37 +02:00

i801 as only user of gpio i2c mux removed support for class-based device instantiation on muxed busses. Class-based device instantiation is a legacy mechanism and shouldn't be used in new code, therefore remove support also here. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
32 lines
880 B
C
32 lines
880 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* i2c-mux-gpio interface to platform code
|
|
*
|
|
* Peter Korsgaard <peter.korsgaard@barco.com>
|
|
*/
|
|
|
|
#ifndef _LINUX_I2C_MUX_GPIO_H
|
|
#define _LINUX_I2C_MUX_GPIO_H
|
|
|
|
/* MUX has no specific idle mode */
|
|
#define I2C_MUX_GPIO_NO_IDLE ((unsigned)-1)
|
|
|
|
/**
|
|
* struct i2c_mux_gpio_platform_data - Platform-dependent data for i2c-mux-gpio
|
|
* @parent: Parent I2C bus adapter number
|
|
* @base_nr: Base I2C bus number to number adapters from or zero for dynamic
|
|
* @values: Array of bitmasks of GPIO settings (low/high) for each
|
|
* position
|
|
* @n_values: Number of multiplexer positions (busses to instantiate)
|
|
* @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
|
|
*/
|
|
struct i2c_mux_gpio_platform_data {
|
|
int parent;
|
|
int base_nr;
|
|
const unsigned *values;
|
|
int n_values;
|
|
unsigned idle;
|
|
};
|
|
|
|
#endif /* _LINUX_I2C_MUX_GPIO_H */
|