treewide: Replace TRUE/FALSE with true/false

C language standard uses true/false for the boolean type.
Let's switch to that for better language compatibility.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Bin Meng
2022-12-21 19:38:06 +08:00
committed by Anup Patel
parent 6b5188ca14
commit 440fa818fb
23 changed files with 103 additions and 105 deletions

View File

@@ -56,7 +56,7 @@ static struct aclint_mtimer_data mtimer = {
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = ARIANE_HART_COUNT,
.has_64bit_mmio = TRUE,
.has_64bit_mmio = true,
};
/*

View File

@@ -60,7 +60,7 @@ static struct aclint_mtimer_data mtimer = {
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = OPENPITON_DEFAULT_HART_COUNT,
.has_64bit_mmio = TRUE,
.has_64bit_mmio = true,
};
/*

View File

@@ -205,7 +205,7 @@ static int da9063_reset_init(void *fdt, int nodeoff,
}
static const struct fdt_match da9063_reset_match[] = {
{ .compatible = "dlg,da9063", .data = (void *)TRUE },
{ .compatible = "dlg,da9063", .data = (void *)true },
{ },
};

View File

@@ -52,7 +52,7 @@ static struct aclint_mtimer_data mtimer = {
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = K210_HART_COUNT,
.has_64bit_mmio = TRUE,
.has_64bit_mmio = true,
};
static u32 k210_get_clk_freq(void)

View File

@@ -83,7 +83,7 @@ static struct aclint_mtimer_data mtimer = {
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = UX600_HART_COUNT,
.has_64bit_mmio = TRUE,
.has_64bit_mmio = true,
};
static u32 measure_cpu_freq(u32 n)

View File

@@ -53,7 +53,7 @@ static struct aclint_mtimer_data mtimer = {
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = PLATFORM_HART_COUNT,
.has_64bit_mmio = TRUE,
.has_64bit_mmio = true,
};
/*