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