Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df6dd24f authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Peter Rosin
Browse files

i2c: mux: ltc4306: simplify code to reach the adapter



struct i2c_client has a direct pointer to the adapter, no need to dig
it out of the struct device tree.

Suggested-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent f2e08213
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ MODULE_DEVICE_TABLE(of, ltc4306_of_match);

static int ltc4306_probe(struct i2c_client *client)
{
	struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
	struct i2c_adapter *adap = client->adapter;
	const struct chip_desc *chip;
	struct i2c_mux_core *muxc;
	struct ltc4306 *data;