power: supply: sbs-manager: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:56:03 +0000 (12:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 23 Jun 2019 16:03:26 +0000 (18:03 +0200)
commit22ee8384dc688cbcb8ac03112ce81c43d55a961b
tree083109fd2e0b784673366586a28bef6f5ef03db4
parentbf0e482aefe1dad509f6f2b843bf7461c53ce052
power: supply: sbs-manager: 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/sbs-manager.c