leds: move default_state read from fwnode to core
authorDenis Osterland-Heim <Denis.Osterland@diehl.com>
Tue, 8 Jun 2021 06:35:53 +0000 (08:35 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 18 Aug 2021 06:27:30 +0000 (08:27 +0200)
commit791bc41163c51f870972d6c6b82d971ce951096c
tree3b6504b86874ba8c9e1ecf3949728400f4583559
parent654933ae7d32f278eecd0bb0f175785574ac4775
leds: move default_state read from fwnode to core

This patch introduces a new function to read initial
default_state from fwnode.

Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-core.c
drivers/leds/leds-gpio.c
drivers/leds/leds.h
include/linux/leds.h