[PATCH v2 2/4] tools: zynqmp_psu_init_minimize.sh: Switch to clang-format
Michal Simek
michal.simek at amd.com
Thu Sep 4 09:16:22 CEST 2025
On 9/4/25 00:09, Javier Tia wrote:
> Replace the use of scripts/Lindent with clang-format in
> zynqmp_psu_init_minimize.sh. This change is made to align with the rest
> of the codebase that uses clang-format for code formatting. This ensures
> consistency across all scripts in terms of code style and formatting.
>
> Signed-off-by: Javier Tia <javier.tia at linaro.org>
> ---
> tools/zynqmp_psu_init_minimize.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/zynqmp_psu_init_minimize.sh b/tools/zynqmp_psu_init_minimize.sh
> index 5c8b73703bf..f8b729ebc97 100755
> --- a/tools/zynqmp_psu_init_minimize.sh
> +++ b/tools/zynqmp_psu_init_minimize.sh
> @@ -82,7 +82,7 @@ for i in $FUNCS_TO_REMOVE; do
> sed -i "/$i/,/^}$/d" ${OUT}
> done
>
> -scripts/Lindent ${OUT}
> +clang-format -i -style=file ${OUT}
>
> # Prepend 'static' to internal functions
> sed -i 's/^.*data(void)$/static &/g' ${OUT}
Tested-by: Michal Simek <michal.simek at amd.com>
Thanks,
Michal
More information about the U-Boot
mailing list