mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 03:22:27 +00:00
i2c: Add a struct device * parameter to i2c_add_mux_adapter()
And adjust all callers. The new device parameter is used in the next patch to initialize the mux's of_node so that its children may be automatically populated. Signed-off-by: David Daney <david.daney@cavium.com> Tested-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
parent
d9afca37de
commit
5a3ecd5f98
5 changed files with 17 additions and 13 deletions
|
@ -34,7 +34,8 @@
|
|||
* mux control.
|
||||
*/
|
||||
struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent,
|
||||
void *mux_dev, u32 force_nr, u32 chan_id,
|
||||
struct device *mux_dev,
|
||||
void *mux_priv, u32 force_nr, u32 chan_id,
|
||||
int (*select) (struct i2c_adapter *,
|
||||
void *mux_dev, u32 chan_id),
|
||||
int (*deselect) (struct i2c_adapter *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue