Skip to content
Snippets Groups Projects
Commit 5a9dcd81 authored by Wolfram Sang's avatar Wolfram Sang Committed by Peter Rosin
Browse files

i2c: mux: demux-pinctrl: use proper parent device for demux adapter


Due to a typo, the wrong parent device was assigned to the newly created
demuxing adapter device. It got connected to the demuxing platform
device but not to the selected parent I2C adapter device. Fix it to get
a proper parent-child relationship of the demuxed busses.

Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent f657c9fe
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne ...@@ -106,7 +106,7 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne
priv->cur_adap.owner = THIS_MODULE; priv->cur_adap.owner = THIS_MODULE;
priv->cur_adap.algo = &priv->algo; priv->cur_adap.algo = &priv->algo;
priv->cur_adap.algo_data = priv; priv->cur_adap.algo_data = priv;
priv->cur_adap.dev.parent = priv->dev; priv->cur_adap.dev.parent = &adap->dev;
priv->cur_adap.class = adap->class; priv->cur_adap.class = adap->class;
priv->cur_adap.retries = adap->retries; priv->cur_adap.retries = adap->retries;
priv->cur_adap.timeout = adap->timeout; priv->cur_adap.timeout = adap->timeout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment