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