[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_ONmrbaSwjzcoQ17qW8F8ShH3xgz58vv=uciVu8aePZ7g@mail.gmail.com>
Date: Mon, 24 Jul 2023 17:41:17 -0400
From: Alex Deucher <alexdeucher@...il.com>
To: sunran001@...suo.com
Cc: alexander.deucher@....com, dri-devel@...ts.freedesktop.org,
amd-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/radeon: that open brace { should be on the previous line
Applied. thanks!
Alex
On Sun, Jul 23, 2023 at 11:40 PM <sunran001@...suo.com> wrote:
>
> ERROR: that open brace { should be on the previous line
>
> Signed-off-by: Ran Sun <sunran001@...suo.com>
> ---
> drivers/gpu/drm/radeon/rv770_smc.c | 36 ++++++++++--------------------
> 1 file changed, 12 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/rv770_smc.c
> b/drivers/gpu/drm/radeon/rv770_smc.c
> index 45575c0d0a1d..09fa7f5e7c41 100644
> --- a/drivers/gpu/drm/radeon/rv770_smc.c
> +++ b/drivers/gpu/drm/radeon/rv770_smc.c
> @@ -34,8 +34,7 @@
> #define FIRST_SMC_INT_VECT_REG 0xFFD8
> #define FIRST_INT_VECT_S19 0xFFC0
>
> -static const u8 rv770_smc_int_vectors[] =
> -{
> +static const u8 rv770_smc_int_vectors[] = {
> 0x08, 0x10, 0x08, 0x10,
> 0x08, 0x10, 0x08, 0x10,
> 0x08, 0x10, 0x08, 0x10,
> @@ -54,8 +53,7 @@ static const u8 rv770_smc_int_vectors[] =
> 0x03, 0x51, 0x03, 0x51
> };
>
> -static const u8 rv730_smc_int_vectors[] =
> -{
> +static const u8 rv730_smc_int_vectors[] = {
> 0x08, 0x15, 0x08, 0x15,
> 0x08, 0x15, 0x08, 0x15,
> 0x08, 0x15, 0x08, 0x15,
> @@ -74,8 +72,7 @@ static const u8 rv730_smc_int_vectors[] =
> 0x03, 0x56, 0x03, 0x56
> };
>
> -static const u8 rv710_smc_int_vectors[] =
> -{
> +static const u8 rv710_smc_int_vectors[] = {
> 0x08, 0x04, 0x08, 0x04,
> 0x08, 0x04, 0x08, 0x04,
> 0x08, 0x04, 0x08, 0x04,
> @@ -94,8 +91,7 @@ static const u8 rv710_smc_int_vectors[] =
> 0x03, 0x51, 0x03, 0x51
> };
>
> -static const u8 rv740_smc_int_vectors[] =
> -{
> +static const u8 rv740_smc_int_vectors[] = {
> 0x08, 0x10, 0x08, 0x10,
> 0x08, 0x10, 0x08, 0x10,
> 0x08, 0x10, 0x08, 0x10,
> @@ -114,8 +110,7 @@ static const u8 rv740_smc_int_vectors[] =
> 0x03, 0x51, 0x03, 0x51
> };
>
> -static const u8 cedar_smc_int_vectors[] =
> -{
> +static const u8 cedar_smc_int_vectors[] = {
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> @@ -134,8 +129,7 @@ static const u8 cedar_smc_int_vectors[] =
> 0x04, 0xF6, 0x04, 0xF6
> };
>
> -static const u8 redwood_smc_int_vectors[] =
> -{
> +static const u8 redwood_smc_int_vectors[] = {
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> @@ -154,8 +148,7 @@ static const u8 redwood_smc_int_vectors[] =
> 0x04, 0xF6, 0x04, 0xF6
> };
>
> -static const u8 juniper_smc_int_vectors[] =
> -{
> +static const u8 juniper_smc_int_vectors[] = {
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> @@ -174,8 +167,7 @@ static const u8 juniper_smc_int_vectors[] =
> 0x04, 0xF6, 0x04, 0xF6
> };
>
> -static const u8 cypress_smc_int_vectors[] =
> -{
> +static const u8 cypress_smc_int_vectors[] = {
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> 0x0B, 0x05, 0x0B, 0x05,
> @@ -194,8 +186,7 @@ static const u8 cypress_smc_int_vectors[] =
> 0x04, 0xF6, 0x04, 0xF6
> };
>
> -static const u8 barts_smc_int_vectors[] =
> -{
> +static const u8 barts_smc_int_vectors[] = {
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> @@ -214,8 +205,7 @@ static const u8 barts_smc_int_vectors[] =
> 0x05, 0x0A, 0x05, 0x0A
> };
>
> -static const u8 turks_smc_int_vectors[] =
> -{
> +static const u8 turks_smc_int_vectors[] = {
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> @@ -234,8 +224,7 @@ static const u8 turks_smc_int_vectors[] =
> 0x05, 0x0A, 0x05, 0x0A
> };
>
> -static const u8 caicos_smc_int_vectors[] =
> -{
> +static const u8 caicos_smc_int_vectors[] = {
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> 0x0C, 0x14, 0x0C, 0x14,
> @@ -254,8 +243,7 @@ static const u8 caicos_smc_int_vectors[] =
> 0x05, 0x0A, 0x05, 0x0A
> };
>
> -static const u8 cayman_smc_int_vectors[] =
> -{
> +static const u8 cayman_smc_int_vectors[] = {
> 0x12, 0x05, 0x12, 0x05,
> 0x12, 0x05, 0x12, 0x05,
> 0x12, 0x05, 0x12, 0x05,
Powered by blists - more mailing lists