power: supply: max17042_battery: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:56:00 +0000 (12:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 23 Jun 2019 16:03:02 +0000 (18:03 +0200)
commitdee2f3cf9499848f137cea23dcc13da1a6f921e0
treec6aeba50db249a1e77e3e9d8368948246a04101b
parent4e9c406dbea8c9b28a7ac38c5fa2bd1d006240be
power: supply: max17042_battery: 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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c