diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2015-06-12 12:41:16 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-06-17 12:35:36 (GMT) |
commit | dc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6 (patch) | |
tree | 6f82d000655a9dc7fbd9f1aa377a75afdef0edc8 | |
parent | 7b618638a518ce7083fcca1bc7181a5c6337277a (diff) | |
download | linux-dc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6.tar.xz |
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")
-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 06cc1ff..f190e75 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) |