mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
mfd: cros_ec: Register LED subdevice
Add ChromeOS EC-based LED control as EC subdevice. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20240613-cros_ec-led-v3-5-500b50f41e0f@weissschuh.net Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
8d6ce6f3ec
commit
b107093f43
@ -99,6 +99,10 @@ static const struct mfd_cell cros_ec_wdt_cells[] = {
|
||||
{ .name = "cros-ec-wdt", }
|
||||
};
|
||||
|
||||
static const struct mfd_cell cros_ec_led_cells[] = {
|
||||
{ .name = "cros-ec-led", },
|
||||
};
|
||||
|
||||
static const struct cros_feature_to_cells cros_subdevices[] = {
|
||||
{
|
||||
.id = EC_FEATURE_CEC,
|
||||
@ -125,6 +129,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
|
||||
.mfd_cells = cros_ec_wdt_cells,
|
||||
.num_cells = ARRAY_SIZE(cros_ec_wdt_cells),
|
||||
},
|
||||
{
|
||||
.id = EC_FEATURE_LED,
|
||||
.mfd_cells = cros_ec_led_cells,
|
||||
.num_cells = ARRAY_SIZE(cros_ec_led_cells),
|
||||
},
|
||||
};
|
||||
|
||||
static const struct mfd_cell cros_ec_platform_cells[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user