Re: [PATCH] drm/amd/pm: that open brace { should be on the previous line

From: Alex Deucher
Date: Mon Jul 24 2023 - 17:53:50 EST


Applied. Thanks!

On Mon, Jul 24, 2023 at 4:42 AM <sunran001@xxxxxxxxxx> wrote:
>
> ERROR: that open brace { should be on the previous line
>
> Signed-off-by: Ran Sun <sunran001@xxxxxxxxxx>
> ---
> drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h
> b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h
> index beab6d7b28b7..630132c4a76b 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h
> +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h
> @@ -52,8 +52,7 @@ static unsigned int DbiPrbs7[] =
>
>
> //4096 bytes, 256 byte aligned
> -static unsigned int NoDbiPrbs7[] =
> -{
> +static unsigned int NoDbiPrbs7[] = {
> 0x0f0f0f0f, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f00f0f, 0x0f0f0f0f,
> 0x0f0f0f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f00f0f, 0xf0f00f0f,
> 0x0f0f0f0f, 0xf0f0f0f0, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f00f0f,
> 0x0f0f0f0f, 0xf0f00f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f0f0f0,
> 0xf0f00f0f, 0xf0f00f0f, 0xf0f00f0f, 0x0f0ff0f0, 0xf0f0f0f0, 0xf0f0f0f0,
> 0x0f0ff0f0, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f0f0f0, 0xf0f00f0f,
> 0x0f0f0f0f, 0xf0f00f0f, 0x0f0ff0f0, 0x0f0f0f0f, 0xf0f0f0f0,
> 0x0f0ff0f0, 0xf0f00f0f, 0xf0f00f0f, 0xf0f0f0f0, 0x0f0ff0f0, 0xf0f0f0f0,
> 0xf0f00f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0x0f0ff0f0, 0xf0f00f0f,
> @@ -121,8 +120,7 @@ static unsigned int NoDbiPrbs7[] =
> };
>
> // 4096 bytes, 256 byte aligned
> -static unsigned int DbiPrbs7[] =
> -{
> +static unsigned int DbiPrbs7[] = {
> 0xffffffff, 0xffffffff, 0xffffffff, 0x0000ffff, 0xffffffff,
> 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x0000ffff, 0x0000ffff,
> 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0x0000ffff,
> 0xffffffff, 0x0000ffff, 0x00000000, 0xffffffff, 0x00000000,
> 0x0000ffff, 0x0000ffff, 0x0000ffff, 0xffff0000, 0x00000000, 0x00000000,
> 0xffff0000, 0xffffffff, 0xffffffff, 0x00000000, 0x0000ffff,
> 0xffffffff, 0x0000ffff, 0xffff0000, 0xffffffff, 0x00000000,
> 0xffff0000, 0x0000ffff, 0x0000ffff, 0x00000000, 0xffff0000, 0x00000000,
> 0x0000ffff, 0x00000000, 0xffffffff, 0xffff0000, 0x0000ffff,