[PATCH v2] zynqmp: Use the same style for macro definitions

Michal Simek monstr at monstr.eu
Fri Feb 4 13:23:07 CET 2022


st 19. 1. 2022 v 12:03 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> Use the same coding style for all macros.
>  #define<space>NAME<tab/tabs>VALUE
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> Changes in v2:
> - Change base
>
>  include/zynqmp_firmware.h | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/include/zynqmp_firmware.h b/include/zynqmp_firmware.h
> index 2db05a94a870..5927dd94d7bd 100644
> --- a/include/zynqmp_firmware.h
> +++ b/include/zynqmp_firmware.h
> @@ -342,20 +342,20 @@ enum pm_ioctl_id {
>         IOCTL_AIE_ISR_CLEAR = 24,
>  };
>
> -#define PM_SIP_SVC      0xc2000000
> +#define PM_SIP_SVC     0xc2000000
>
> -#define ZYNQMP_PM_VERSION_MAJOR         1
> -#define ZYNQMP_PM_VERSION_MINOR         0
> -#define ZYNQMP_PM_VERSION_MAJOR_SHIFT   16
> -#define ZYNQMP_PM_VERSION_MINOR_MASK    0xFFFF
> +#define ZYNQMP_PM_VERSION_MAJOR                1
> +#define ZYNQMP_PM_VERSION_MINOR                0
> +#define ZYNQMP_PM_VERSION_MAJOR_SHIFT  16
> +#define ZYNQMP_PM_VERSION_MINOR_MASK   0xFFFF
>
>  #define ZYNQMP_PM_VERSION       \
>         ((ZYNQMP_PM_VERSION_MAJOR << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | \
>          ZYNQMP_PM_VERSION_MINOR)
>
> -#define ZYNQMP_PM_VERSION_INVALID       ~0
> +#define ZYNQMP_PM_VERSION_INVALID      ~0
>
> -#define PMUFW_V1_0      ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0)
> +#define PMUFW_V1_0     ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0)
>
>  /*
>   * Return payload size
> --
> 2.34.1
>

Applied.
M


-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list