Lines Matching +full:i2c +full:- +full:alias
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * I2C Address Translator
8 * Based on i2c-mux.h
14 #include <linux/i2c.h>
22 * struct i2c_atr_ops - Callbacks from ATR to the device driver.
24 * bus, with the alias assigned to it. The driver must
25 * configure the hardware to use the alias.
28 * alias.
34 const struct i2c_client *client, u16 alias);
40 * i2c_atr_new() - Allocate and initialize an I2C ATR helper.
43 * @ops: Driver-specific callbacks
57 * i2c_atr_delete - Delete an I2C ATR helper.
58 * @atr: I2C ATR helper to be deleted.
66 * i2c_atr_add_adapter - Create a child ("downstream") I2C bus.
67 * @atr: The I2C ATR
68 * @chan_id: Index of the new adapter (0 .. max_adapters-1). This value is
70 * @adapter_parent: The device used as the parent of the new i2c adapter, or NULL
71 * to use the i2c-atr device as the parent.
72 * @bus_handle: The fwnode handle that points to the adapter's i2c
75 * After calling this function a new i2c bus will appear. Adding and removing
77 * &i2c_atr_ops->attach_client and &i2c_atr_ops->detach_client callbacks for the
78 * driver to assign an alias to the device.
82 * under the i2c-atr device's 'i2c-atr' node.
93 * i2c_atr_del_adapter - Remove a child ("downstream") I2C bus added by
94 * i2c_atr_add_adapter(). If no I2C bus has been added
95 * this function is a no-op.
96 * @atr: The I2C ATR
97 * @chan_id: Index of the adapter to be removed (0 .. max_adapters-1)
102 * i2c_atr_set_driver_data - Set private driver data to the i2c-atr instance.
103 * @atr: The I2C ATR
109 * i2c_atr_get_driver_data - Get the stored drive data.
110 * @atr: The I2C ATR