i2c: mux: Remove class argument from i2c_mux_add_adapter()

This commit is contained in:
CrazyCat
2024-08-02 19:08:35 +03:00
parent 33cfd223fa
commit 06f0fc5ccc
5 changed files with 8 additions and 8 deletions

View File

@@ -810,10 +810,10 @@ struct dvb_frontend *gx1133_attach(const struct gx1133_config *cfg,
goto err1;
}
priv->muxc->priv = priv;
ret = i2c_mux_add_adapter(priv->muxc, 0, 0, 0);
ret = i2c_mux_add_adapter(priv->muxc, 0, 0);
if (ret)
goto err1;
ret = i2c_mux_add_adapter(priv->muxc, 0, 1, 0);
ret = i2c_mux_add_adapter(priv->muxc, 0, 1);
if (ret)
goto err1;
priv->i2c_demod = priv->muxc->adapter[0];

View File

@@ -516,7 +516,7 @@ static int gx1503_probe(struct i2c_client *client)
goto err_regmap_exit;
}
dev->muxc->priv = client;
ret = i2c_mux_add_adapter(dev->muxc,0,0,0);
ret = i2c_mux_add_adapter(dev->muxc,0,0);
if(ret)
goto err_regmap_exit;

View File

@@ -1734,7 +1734,7 @@ static int si2183_probe(struct i2c_client *client)
goto err_base_kfree;
}
base->muxc->priv = client;
ret = i2c_mux_add_adapter(base->muxc, 0, 0, 0);
ret = i2c_mux_add_adapter(base->muxc, 0, 0);
if (ret)
goto err_base_kfree;
base->tuner_adapter = base->muxc->adapter[0];

View File

@@ -624,10 +624,10 @@ struct dvb_frontend *tas2101_attach(const struct tas2101_config *cfg,
goto err1;
}
priv->muxc->priv = priv;
ret = i2c_mux_add_adapter(priv->muxc, 0, 0, 0);
ret = i2c_mux_add_adapter(priv->muxc, 0, 0);
if (ret)
goto err1;
ret = i2c_mux_add_adapter(priv->muxc, 0, 1, 0);
ret = i2c_mux_add_adapter(priv->muxc, 0, 1);
if (ret)
goto err1;
priv->i2c_demod = priv->muxc->adapter[0];

View File

@@ -294,10 +294,10 @@ struct dvb_frontend *tas2971_attach(const struct tas2101_config *cfg,
goto err1;
}
base->muxc->priv = priv;
ret = i2c_mux_add_adapter(base->muxc, 0, 0, 0);
ret = i2c_mux_add_adapter(base->muxc, 0, 0);
if (ret)
goto err1;
ret = i2c_mux_add_adapter(base->muxc, 0, 1, 0);
ret = i2c_mux_add_adapter(base->muxc, 0, 1);
if (ret)
goto err1;
base->i2c_demod = base->muxc->adapter[0];