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 --- lib/utils/reset/fdt_reset_gpio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/utils/reset') diff --git a/lib/utils/reset/fdt_reset_gpio.c b/lib/utils/reset/fdt_reset_gpio.c index bd2c6227..6a908dd7 100644 --- a/lib/utils/reset/fdt_reset_gpio.c +++ b/lib/utils/reset/fdt_reset_gpio.c @@ -77,7 +77,7 @@ static void gpio_reset_exec(struct gpio_reset *reset) static int gpio_system_poweroff_check(u32 type, u32 reason) { - if (gpio_reset_get(FALSE, type)) + if (gpio_reset_get(false, type)) return 128; return 0; @@ -85,7 +85,7 @@ static int gpio_system_poweroff_check(u32 type, u32 reason) static void gpio_system_poweroff(u32 type, u32 reason) { - gpio_reset_exec(gpio_reset_get(FALSE, type)); + gpio_reset_exec(gpio_reset_get(false, type)); } static struct sbi_system_reset_device gpio_poweroff = { @@ -96,7 +96,7 @@ static struct sbi_system_reset_device gpio_poweroff = { static int gpio_system_restart_check(u32 type, u32 reason) { - if (gpio_reset_get(TRUE, type)) + if (gpio_reset_get(true, type)) return 128; return 0; @@ -104,7 +104,7 @@ static int gpio_system_restart_check(u32 type, u32 reason) static void gpio_system_restart(u32 type, u32 reason) { - gpio_reset_exec(gpio_reset_get(TRUE, type)); + gpio_reset_exec(gpio_reset_get(true, type)); } static struct sbi_system_reset_device gpio_restart = { @@ -149,7 +149,7 @@ static int gpio_reset_init(void *fdt, int nodeoff, } static const struct fdt_match gpio_poweroff_match[] = { - { .compatible = "gpio-poweroff", .data = (const void *)FALSE }, + { .compatible = "gpio-poweroff", .data = (const void *)false }, { }, }; @@ -159,7 +159,7 @@ struct fdt_reset fdt_poweroff_gpio = { }; static const struct fdt_match gpio_reset_match[] = { - { .compatible = "gpio-restart", .data = (const void *)TRUE }, + { .compatible = "gpio-restart", .data = (const void *)true }, { }, }; -- cgit v1.3.1