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