i2c: use parent adapter quirks in mux
Subsystems (3)
RFC PATCH 1/1 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 <[email protected]>
Signed-off-by Alexander Sverdlin <[email protected]>
--- drivers/i2c/i2c-mux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/i2c/i2c-mux.c +1 -0
@@ -141,6 +141,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)
Wolfram Sang
AppliedQuoted 5 lines · Alexander Sverdlin
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 <[email protected]>Signed-off-by Alexander Sverdlin <[email protected]>
Applied to for-next with stable added, thanks!