Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Weißschuh and committed by
Lee Jones
b107093f 8d6ce6f3

+9
+9
drivers/mfd/cros_ec_dev.c
··· 99 99 { .name = "cros-ec-wdt", } 100 100 }; 101 101 102 + static const struct mfd_cell cros_ec_led_cells[] = { 103 + { .name = "cros-ec-led", }, 104 + }; 105 + 102 106 static const struct cros_feature_to_cells cros_subdevices[] = { 103 107 { 104 108 .id = EC_FEATURE_CEC, ··· 128 124 .id = EC_FEATURE_HANG_DETECT, 129 125 .mfd_cells = cros_ec_wdt_cells, 130 126 .num_cells = ARRAY_SIZE(cros_ec_wdt_cells), 127 + }, 128 + { 129 + .id = EC_FEATURE_LED, 130 + .mfd_cells = cros_ec_led_cells, 131 + .num_cells = ARRAY_SIZE(cros_ec_led_cells), 131 132 }, 132 133 }; 133 134