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>
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
#ifndef EC_LENOVO_PMH7_CHIP_H
|
||||
#define EC_LENOVO_PMH7_CHIP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
struct ec_lenovo_pmh7_config {
|
||||
int backlight_enable:1;
|
||||
int dock_event_enable:1;
|
||||
bool backlight_enable;
|
||||
bool dock_event_enable;
|
||||
};
|
||||
|
||||
#endif /* EC_LENOVO_PMH7_CHIP_H */
|
||||
|
Reference in New Issue
Block a user