leds: leds-tca6507: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:44 +0000 (12:55 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Sun, 9 Jun 2019 11:11:44 +0000 (13:11 +0200)
commit09bfa5f6833a62bd6669d3ba7f83105181287b92
treecd48533eeeeaacffbf016fe69e6eef15d346dc18
parent1c57d9bd29f63996b301fe92190713e39730d6ca
leds: leds-tca6507: 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>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-tca6507.c