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

Commit bf0e482a authored by Wolfram Sang's avatar Wolfram Sang Committed by Sebastian Reichel
Browse files

power: supply: rt9455_charger: 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.

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 avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent df324c60
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1593,7 +1593,7 @@ static const struct regmap_config rt9455_regmap_config = {
static int rt9455_probe(struct i2c_client *client,
			const struct i2c_device_id *id)
{
	struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
	struct i2c_adapter *adapter = client->adapter;
	struct device *dev = &client->dev;
	struct rt9455_info *info;
	struct power_supply_config rt9455_charger_config = {};