diff options
author | David Daney <david.daney@cavium.com> | 2012-04-12 14:14:22 -0700 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 14:28:15 +0200 |
commit | 5a3ecd5f9877b963a581ca5d4495a1a24dafc88c (patch) | |
tree | 9a027ed9fa53e859f79b007f5e661324cf9bfd60 /include | |
parent | d9afca37dea077d11ed67fc7f93b95c003e58819 (diff) | |
download | op-kernel-dev-5a3ecd5f9877b963a581ca5d4495a1a24dafc88c.zip op-kernel-dev-5a3ecd5f9877b963a581ca5d4495a1a24dafc88c.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c-mux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/i2c-mux.h b/include/linux/i2c-mux.h index 747f0cd..c790838 100644 --- a/include/linux/i2c-mux.h +++ b/include/linux/i2c-mux.h @@ -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 *, |