diff options
author | Bin Meng <bmeng@tinylab.org> | 2022-12-21 14:38:06 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-01-06 14:56:35 +0300 |
commit | 440fa818fbffd0771d75890c4fcda062ceab7ebd (patch) | |
tree | ddc51462269d7532149eab1bd60000158c37a535 /platform | |
parent | 6b5188ca14e59ce7bf71afe4e7d3d557c3d31bf8 (diff) | |
download | opensbi-440fa818fbffd0771d75890c4fcda062ceab7ebd.tar.xz |
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>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/fpga/ariane/platform.c | 2 | ||||
-rw-r--r-- | platform/fpga/openpiton/platform.c | 2 | ||||
-rw-r--r-- | platform/generic/sifive/fu740.c | 2 | ||||
-rw-r--r-- | platform/kendryte/k210/platform.c | 2 | ||||
-rw-r--r-- | platform/nuclei/ux600/platform.c | 2 | ||||
-rw-r--r-- | platform/template/platform.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/platform/fpga/ariane/platform.c b/platform/fpga/ariane/platform.c index 56a666b..1e341c2 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 5ff7d20..57ae698 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 f595c04..fe71ce6 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 ef848c7..7eb9015 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 2b02734..4eccff1 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 f3802da..8adc431 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, }; /* |