summaryrefslogtreecommitdiff
path: root/common/led_common.c
diff options
context:
space:
mode:
authorParth Malkan <parthmalkan@google.com>2022-04-15 08:53:38 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-15 20:38:14 +0000
commite97d2fc6ba6d88fa0c65ba9bb659bf8130a0478f (patch)
tree722693a128b559d8a292ffbc827063e3f28d52be /common/led_common.c
parent65e8633dfad7fdc4b69ba88cd1ada34b122ca269 (diff)
downloadchrome-ec-e97d2fc6ba6d88fa0c65ba9bb659bf8130a0478f.tar.gz
led: Make led_is_supported function overridable
Zephyr led code doesn't rely on hard coded led_ids and overrides led_is_supported function with custom implementation BRANCH=none BUG=b:227798487 TEST=BUILD Cq-Depend: chromium:3579759 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: Idde6f522589bdff9c29c63b06983ac38329dbbf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3585081 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'common/led_common.c')
-rw-r--r--common/led_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/led_common.c b/common/led_common.c
index 6c0e2ac426..e890ad71bb 100644
--- a/common/led_common.c
+++ b/common/led_common.c
@@ -16,7 +16,7 @@
static uint32_t led_auto_control_flags = ~0x00;
-static int led_is_supported(enum ec_led_id led_id)
+__overridable int led_is_supported(enum ec_led_id led_id)
{
int i;
static int supported_leds = -1;