summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x200/variants
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-03-19 08:01:53 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-04-08 03:36:07 +0000
commitaf93336da378fed9b2f15734518a1ca05c7769b7 (patch)
tree93a038e887e7f4632ffdcfbca38db8980548b59b /src/mainboard/lenovo/x200/variants
parentc46242f904b64daee36e6d478e1d88c623fb3c44 (diff)
ec/lenovo/pmh7/chip.h: Use 'bool' instead of 'int'
This to fix following error using Clang-16.0.0: /cb-build/coreboot-toolchain.0/clang/LENOVO_W500/mainboard/lenovo/t400/static.c:135:22: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] .backlight_enable = 0x01, ^~~~ /cb-build/coreboot-toolchain.0/clang/LENOVO_W500/mainboard/lenovo/t400/static.c:136:23: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] .dock_event_enable = 0x01, ^~~~ Change-Id: Icd35224877fee355e1bbb8a8e838cb047604babb Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73810 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/lenovo/x200/variants')
-rw-r--r--src/mainboard/lenovo/x200/variants/x200/overridetree.cb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/lenovo/x200/variants/x200/overridetree.cb b/src/mainboard/lenovo/x200/variants/x200/overridetree.cb
index 51beecc897..cd69e2eba4 100644
--- a/src/mainboard/lenovo/x200/variants/x200/overridetree.cb
+++ b/src/mainboard/lenovo/x200/variants/x200/overridetree.cb
@@ -17,7 +17,7 @@ chip northbridge/intel/gm45
device pci 1f.0 on # LPC bridge
chip ec/lenovo/pmh7
device pnp ff.1 on end # dummy
- register "dock_event_enable" = "0x01"
+ register "dock_event_enable" = "true"
end
chip superio/nsc/pc87382
device pnp 164e.3 on # Digitizer