summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-03-04 11:08:44 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-08 17:07:32 +0000
commit1a7ba0f3822829ad69d860ee41bb4ae756c4756d (patch)
treeec8aeb34c9fe9d96173229635fc23da5eac5c13c
parent0d8575e5901a4b4e701c285d6b5a0694184587c4 (diff)
downloadchrome-ec-1a7ba0f3822829ad69d860ee41bb4ae756c4756d.tar.gz
chip/it83xx: Fix narrowing type warning when included from C++
chip/it83xx/registers.h:861:63: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing] [GPIO_KSI] = { 0x00F01D08, 0x00F01D09, 0x00F01D26, -1 }, BRANCH=none BUG=b:144959033 TEST=make buildall Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I029cb79e132ce18158440812b26aa57e770ce423 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2740561 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--chip/it83xx/registers.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h
index e86c452379..0b948994a4 100644
--- a/chip/it83xx/registers.h
+++ b/chip/it83xx/registers.h
@@ -858,9 +858,9 @@ static const struct gpio_reg_t gpio_group_to_reg[] = {
[GPIO_Q] = { 0x00F03E03, 0x00F03E63, 0x00F03E73, 0x00F03E20 },
[GPIO_R] = { 0x00F03E04, 0x00F03E64, 0x00F03E74, 0x00F03E28 },
#endif
- [GPIO_KSI] = { 0x00F01D08, 0x00F01D09, 0x00F01D26, -1 },
- [GPIO_KSO_H] = { 0x00F01D01, 0x00F01D0C, 0x00F01D27, -1 },
- [GPIO_KSO_L] = { 0x00F01D00, 0x00F01D0F, 0x00F01D28, -1 },
+ [GPIO_KSI] = { 0x00F01D08, 0x00F01D09, 0x00F01D26, 0xFFFFFFFF },
+ [GPIO_KSO_H] = { 0x00F01D01, 0x00F01D0C, 0x00F01D27, 0xFFFFFFFF },
+ [GPIO_KSO_L] = { 0x00F01D00, 0x00F01D0F, 0x00F01D28, 0xFFFFFFFF },
};
BUILD_ASSERT(ARRAY_SIZE(gpio_group_to_reg) == (COUNT));