summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-01-04 12:38:18 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-06 19:00:14 +0000
commitf2af169df3ac73543221354c34f41c6c9e1f4f73 (patch)
treef7564cc1efa9c4dcd6468d13c42ea0bd50350f56 /common/keyboard_8042.c
parenteb4a8c7a2878964c66bfa0122468bd9c319e2bfb (diff)
downloadchrome-ec-f2af169df3ac73543221354c34f41c6c9e1f4f73.tar.gz
ec: Change get_keycap_label return to unsigned
This causes compiler failures with some compiler flags. Change all references to get_keycap_label to use uint8_t instead of char. BRANCH=NONE BUG=b:264434836,b:257393779 TEST=make clobber && make V=1 TEST_ASAN=y TEST_FLAG=TEST_HOSTTEST=y \ test-list-host=kb_8042 run-kb_8042 LOW_COVERAGE_REASON=Refactor of types only. Change-Id: I95db81e8adc2bc082df8fae26d33aad78adbd1cf Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4136957 Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com> Code-Coverage: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r--common/keyboard_8042.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index 02b4d4dc5c..fc55628719 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -470,7 +470,7 @@ void keyboard_state_changed(int row, int col, int is_pressed)
enum ec_error_list ret;
#ifdef CONFIG_KEYBOARD_DEBUG
- char mylabel = get_keycap_label(row, col);
+ uint8_t mylabel = get_keycap_label(row, col);
if (mylabel & KEYCAP_LONG_LABEL_BIT)
CPRINTS("KB (%d,%d)=%d %s", row, col, is_pressed,