diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2015-06-12 14:41:16 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-06-17 14:35:36 +0200 |
commit | dc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6 (patch) | |
tree | 6f82d000655a9dc7fbd9f1aa377a75afdef0edc8 /drivers/i2c/i2c-mux.c | |
parent | 7b618638a518ce7083fcca1bc7181a5c6337277a (diff) | |
download | lwn-dc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6.tar.gz lwn-dc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6.zip |
i2c: use parent adapter quirks in mux
Inherit parent adapter quirks in MUX in case the devices on the multiplexed
buses are interested in the adapter limitations.
Signed-off-by: Łukasz Gemborowski <lukasz.gemborowski@nokia.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Fixes: b7f625840267b1 ("i2c: add quirk checks to core")
Diffstat (limited to 'drivers/i2c/i2c-mux.c')
-rw-r--r-- | drivers/i2c/i2c-mux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c index 06cc1ff088f1..f190e75b9da8 100644 --- a/drivers/i2c/i2c-mux.c +++ b/drivers/i2c/i2c-mux.c @@ -144,6 +144,7 @@ struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent, priv->adap.dev.parent = &parent->dev; priv->adap.retries = parent->retries; priv->adap.timeout = parent->timeout; + priv->adap.quirks = parent->quirks; /* Sanity check on class */ if (i2c_mux_parent_classes(parent) & class) |