[PATCH] gpu: amd: Clean up errors in ppatomfwctrl.h

Ran Sun posted 1 patch 2 years, 6 months ago
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] gpu: amd: Clean up errors in ppatomfwctrl.h
Posted by Ran Sun 2 years, 6 months ago
Fix the following errors reported by checkpatch:

ERROR: open brace '{' following struct go on the same line

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
index 2fc1733bcdcf..e86e05c786d9 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
@@ -147,8 +147,7 @@ struct pp_atomfwctrl_bios_boot_up_values {
 	uint8_t    ucCoolingID;
 };
 
-struct pp_atomfwctrl_smc_dpm_parameters
-{
+struct pp_atomfwctrl_smc_dpm_parameters {
   uint8_t  liquid1_i2c_address;
   uint8_t  liquid2_i2c_address;
   uint8_t  vr_i2c_address;
-- 
2.17.1
Re: [PATCH] gpu: amd: Clean up errors in ppatomfwctrl.h
Posted by Alex Deucher 2 years, 6 months ago
Applied.  Thanks!

On Tue, Aug 1, 2023 at 5:30 AM Ran Sun <sunran001@208suo.com> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: open brace '{' following struct go on the same line
>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
>  drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
> index 2fc1733bcdcf..e86e05c786d9 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
> +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h
> @@ -147,8 +147,7 @@ struct pp_atomfwctrl_bios_boot_up_values {
>         uint8_t    ucCoolingID;
>  };
>
> -struct pp_atomfwctrl_smc_dpm_parameters
> -{
> +struct pp_atomfwctrl_smc_dpm_parameters {
>    uint8_t  liquid1_i2c_address;
>    uint8_t  liquid2_i2c_address;
>    uint8_t  vr_i2c_address;
> --
> 2.17.1
>