From bcb81f0cbe55fee86bd1d123d5fefc4848af4f8e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 30 Jul 2024 21:58:42 -0700 Subject: [PATCH] lib: utils/fdt: Fix fdt_add_cpu_idle_states() prototype The function prototype should use the same parameter name as the documentation and the function definition. Fixes: 33bf9174602c ("lib: utils: Add fdt_add_cpu_idle_states() helper function") Signed-off-by: Samuel Holland Reviewed-by: Andrew Jones Reviewed-by: Anup Patel --- include/sbi_utils/fdt/fdt_fixup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sbi_utils/fdt/fdt_fixup.h b/include/sbi_utils/fdt/fdt_fixup.h index ecd55a72..21a53011 100644 --- a/include/sbi_utils/fdt/fdt_fixup.h +++ b/include/sbi_utils/fdt/fdt_fixup.h @@ -30,7 +30,7 @@ struct sbi_cpu_idle_state { * @param states: array of idle state descriptions, ending with empty element * @return zero on success and -ve on failure */ -int fdt_add_cpu_idle_states(void *dtb, const struct sbi_cpu_idle_state *state); +int fdt_add_cpu_idle_states(void *fdt, const struct sbi_cpu_idle_state *state); /** * Fix up the CPU node in the device tree