leds: el15203000: Introduce to_el15203000_led() helper
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:23 +0000 (12:50 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 28 May 2021 09:59:59 +0000 (11:59 +0200)
commita43a4e588e72bafc81924d61bf1167cd6810ecbb
treef98889e0c0b79ad5bf0b9cc0d421f946d59e7e3a
parent0ac40af86077982a5346dbc9655172d2775d6b08
leds: el15203000: Introduce to_el15203000_led() helper

Introduce a helper to replace open coded container_of() calls.
At the same time move ldev member to be first in the struct el15203000_led,
that makes container_of() effectivelly a no-op.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-el15203000.c