]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: rt9455_charger: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:56:02 +0000 (12:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 23 Jun 2019 16:03:20 +0000 (18:03 +0200)
commitbf0e482aefe1dad509f6f2b843bf7461c53ce052
tree4c79523100237c3a0eb78eeb846fc81a24cb3c6f
parentdf324c606aafa16045542b3129de577d7a4ca3b6
power: supply: rt9455_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/rt9455_charger.c