summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Malkan <parthmalkan@google.com>2022-07-29 16:36:29 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-30 21:58:56 +0000
commit62be401c46f7e24b9b483bf616a4302ba02485c3 (patch)
treedac42e5de2cfcfcf277feae8e12ebd74b8eb452d
parent1f99ace0558e358342ec86425710c39a3fc64210 (diff)
downloadchrome-ec-62be401c46f7e24b9b483bf616a4302ba02485c3.tar.gz
rgbkbd: Update RGBKBD type to 4-zones-4-LEDs
RGBKBD type variable is set to 4-zones-15-LEDs, update it to the correct value of 4-zones-4-LEDs. This is because Mithrax only has four addressable LED IDs (4 zones) even though it has 15 physical LEDs. BUG=b:239653506 BRANCH=none TEST=make BOARD=mithrax -j, ectool rgbkbd getconfig Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3794616, chromium:3795088 Change-Id: I2b76166377981dce7759ab79915efe17b5f67804 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3794617 Reviewed-by: YH Lin <yueherngl@chromium.org>
-rw-r--r--include/ec_commands.h2
-rw-r--r--util/ectool.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 3d23c678ee..68446d0f38 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -7176,7 +7176,7 @@ enum ec_rgbkbd_type {
EC_RGBKBD_TYPE_PER_KEY = 1, /* e.g. Vell */
EC_RGBKBD_TYPE_FOUR_ZONES_40_LEDS = 2, /* e.g. Taniks */
EC_RGBKBD_TYPE_FOUR_ZONES_12_LEDS = 3, /* e.g. Osiris */
- EC_RGBKBD_TYPE_FOUR_ZONES_15_LEDS = 4, /* e.g. Mithrax */
+ EC_RGBKBD_TYPE_FOUR_ZONES_4_LEDS = 4, /* e.g. Mithrax */
EC_RGBKBD_TYPE_COUNT,
};
diff --git a/util/ectool.c b/util/ectool.c
index ba85e821df..aa719d84a7 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -1430,8 +1430,8 @@ static int cmd_rgbkbd(int argc, char *argv[])
case EC_RGBKBD_TYPE_FOUR_ZONES_12_LEDS:
type = "EC_RGBKBD_TYPE_FOUR_ZONES_12_LEDS";
break;
- case EC_RGBKBD_TYPE_FOUR_ZONES_15_LEDS:
- type = "EC_RGBKBD_TYPE_FOUR_ZONES_15_LEDS";
+ case EC_RGBKBD_TYPE_FOUR_ZONES_4_LEDS:
+ type = "EC_RGBKBD_TYPE_FOUR_ZONES_4_LEDS";
break;
default:
type = "EC_RGBKBD_TYPE_UNKNOWN";