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

Commit 272d28bd authored by Wolfram Sang's avatar Wolfram Sang Committed by Rob Herring
Browse files

of: unittest: simplify getting the adapter of a client



We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Reported-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 5c68b823
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1946,7 +1946,7 @@ static int unittest_i2c_mux_probe(struct i2c_client *client,
{
	int i, nchans;
	struct device *dev = &client->dev;
	struct i2c_adapter *adap = to_i2c_adapter(dev->parent);
	struct i2c_adapter *adap = client->adapter;
	struct device_node *np = client->dev.of_node, *child;
	struct i2c_mux_core *muxc;
	u32 reg, max_reg;