leds: Move led_init_default_state_get() to the global header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Jan 2023 13:12:47 +0000 (15:12 +0200)
committerLee Jones <lee@kernel.org>
Mon, 30 Jan 2023 08:03:35 +0000 (08:03 +0000)
commit156a5bb89ca6f3edd2be0bfd0de15e575442927e
tree996240383d6867a0a87c3f2649d124589c192feb
parentd35d0c9de762e003129dfc1240df7152a4bc31e8
leds: Move led_init_default_state_get() to the global header

There are users inside and outside LED framework that have implemented
a local copy of led_init_default_state_get(). In order to deduplicate
that, as the first step move the declaration from LED header to the
global one.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230103131256.33894-3-andriy.shevchenko@linux.intel.com
drivers/leds/leds.h
include/linux/leds.h