From 440fa818fbffd0771d75890c4fcda062ceab7ebd Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Wed, 21 Dec 2022 19:38:06 +0800 Subject: 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 Reviewed-by: Anup Patel Reviewed-by: Samuel Holland Tested-by: Samuel Holland --- platform/fpga/ariane/platform.c | 2 +- platform/fpga/openpiton/platform.c | 2 +- platform/generic/sifive/fu740.c | 2 +- platform/kendryte/k210/platform.c | 2 +- platform/nuclei/ux600/platform.c | 2 +- platform/template/platform.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'platform') diff --git a/platform/fpga/ariane/platform.c b/platform/fpga/ariane/platform.c index 56a666bb..1e341c20 100644 --- a/platform/fpga/ariane/platform.c +++ b/platform/fpga/ariane/platform.c @@ -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, }; /* diff --git a/platform/fpga/openpiton/platform.c b/platform/fpga/openpiton/platform.c index 5ff7d200..57ae6980 100644 --- a/platform/fpga/openpiton/platform.c +++ b/platform/fpga/openpiton/platform.c @@ -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, }; /* diff --git a/platform/generic/sifive/fu740.c b/platform/generic/sifive/fu740.c index f595c048..fe71ce6a 100644 --- a/platform/generic/sifive/fu740.c +++ b/platform/generic/sifive/fu740.c @@ -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 }, { }, }; diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c index ef848c7c..7eb9015b 100644 --- a/platform/kendryte/k210/platform.c +++ b/platform/kendryte/k210/platform.c @@ -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) diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c index 2b027347..4eccff15 100644 --- a/platform/nuclei/ux600/platform.c +++ b/platform/nuclei/ux600/platform.c @@ -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) diff --git a/platform/template/platform.c b/platform/template/platform.c index f3802dad..8adc431f 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -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, }; /* -- cgit v1.2.3