power: supply: max17040_battery: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:59 +0000 (12:55 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 23 Jun 2019 16:02:53 +0000 (18:02 +0200)
commit4e9c406dbea8c9b28a7ac38c5fa2bd1d006240be
tree349e9508c5d4723f2a7c47920f749856300e465c
parent71d7ffb29b6b9b492b2b14348dabc3c144456788
power: supply: max17040_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/max17040_battery.c