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

Configure Feed

Select the types of activity you want to include in your feed.

mfd: cros_ec: Register EC-based watchdog subdevice

Add ChromeOS EC-based watchdog as EC subdevice.

Signed-off-by: Lukasz Majczak <lma@chromium.org>
Link: https://lore.kernel.org/r/20240119084328.3135503-4-lma@chromium.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Lukasz Majczak and committed by
Lee Jones
6cea614b 5dce7803

+9
+9
drivers/mfd/cros_ec_dev.c
··· 91 91 { .name = "cros-usbpd-notify", }, 92 92 }; 93 93 94 + static const struct mfd_cell cros_ec_wdt_cells[] = { 95 + { .name = "cros-ec-wdt", } 96 + }; 97 + 94 98 static const struct cros_feature_to_cells cros_subdevices[] = { 95 99 { 96 100 .id = EC_FEATURE_CEC, ··· 110 106 .id = EC_FEATURE_USB_PD, 111 107 .mfd_cells = cros_usbpd_charger_cells, 112 108 .num_cells = ARRAY_SIZE(cros_usbpd_charger_cells), 109 + }, 110 + { 111 + .id = EC_FEATURE_HANG_DETECT, 112 + .mfd_cells = cros_ec_wdt_cells, 113 + .num_cells = ARRAY_SIZE(cros_ec_wdt_cells), 113 114 }, 114 115 }; 115 116