diff options
author | David Daney <david.daney@cavium.com> | 2012-04-12 17:14:22 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 08:28:15 -0400 |
commit | 5a3ecd5f9877b963a581ca5d4495a1a24dafc88c (patch) | |
tree | 9a027ed9fa53e859f79b007f5e661324cf9bfd60 /include/linux/i2c-mux.h | |
parent | d9afca37dea077d11ed67fc7f93b95c003e58819 (diff) |
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/linux/i2c-mux.h')
-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 747f0cde4164..c79083830014 100644 --- a/include/linux/i2c-mux.h +++ b/include/linux/i2c-mux.h | |||
@@ -34,7 +34,8 @@ | |||
34 | * mux control. | 34 | * mux control. |
35 | */ | 35 | */ |
36 | struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent, | 36 | struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent, |
37 | void *mux_dev, u32 force_nr, u32 chan_id, | 37 | struct device *mux_dev, |
38 | void *mux_priv, u32 force_nr, u32 chan_id, | ||
38 | int (*select) (struct i2c_adapter *, | 39 | int (*select) (struct i2c_adapter *, |
39 | void *mux_dev, u32 chan_id), | 40 | void *mux_dev, u32 chan_id), |
40 | int (*deselect) (struct i2c_adapter *, | 41 | int (*deselect) (struct i2c_adapter *, |