dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amd/pm: Clean up errors in smu7.h
@ 2023-08-02  1:31 Ran Sun
  2023-08-07 16:57 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Ran Sun @ 2023-08-02  1:31 UTC (permalink / raw)
  To: alexander.deucher; +Cc: Ran Sun, dri-devel, amd-gfx, linux-kernel

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/inc/smu7.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h b/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
index e14072d45918..bfce9087a47f 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
+++ b/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
@@ -101,8 +101,7 @@
 #define VR_SMIO_PATTERN_2        4
 #define VR_STATIC_VOLTAGE        5
 
-struct SMU7_PIDController
-{
+struct SMU7_PIDController {
     uint32_t Ki;
     int32_t LFWindupUL;
     int32_t LFWindupLL;
@@ -136,8 +135,7 @@ typedef struct SMU7_PIDController SMU7_PIDController;
 #define SMU7_VCE_MCLK_HANDSHAKE_DISABLE                  0x00010000
 #define SMU7_VCE_SCLK_HANDSHAKE_DISABLE                  0x00020000
 
-struct SMU7_Firmware_Header
-{
+struct SMU7_Firmware_Header {
     uint32_t Digest[5];
     uint32_t Version;
     uint32_t HeaderSize;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amd/pm: Clean up errors in smu7.h
  2023-08-02  1:31 [PATCH] drm/amd/pm: Clean up errors in smu7.h Ran Sun
@ 2023-08-07 16:57 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2023-08-07 16:57 UTC (permalink / raw)
  To: Ran Sun; +Cc: alexander.deucher, amd-gfx, dri-devel, linux-kernel

Applied.  Thanks!

On Tue, Aug 1, 2023 at 9:31 PM 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/inc/smu7.h | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h b/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
> index e14072d45918..bfce9087a47f 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
> +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h
> @@ -101,8 +101,7 @@
>  #define VR_SMIO_PATTERN_2        4
>  #define VR_STATIC_VOLTAGE        5
>
> -struct SMU7_PIDController
> -{
> +struct SMU7_PIDController {
>      uint32_t Ki;
>      int32_t LFWindupUL;
>      int32_t LFWindupLL;
> @@ -136,8 +135,7 @@ typedef struct SMU7_PIDController SMU7_PIDController;
>  #define SMU7_VCE_MCLK_HANDSHAKE_DISABLE                  0x00010000
>  #define SMU7_VCE_SCLK_HANDSHAKE_DISABLE                  0x00020000
>
> -struct SMU7_Firmware_Header
> -{
> +struct SMU7_Firmware_Header {
>      uint32_t Digest[5];
>      uint32_t Version;
>      uint32_t HeaderSize;
> --
> 2.17.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-07 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-02  1:31 [PATCH] drm/amd/pm: Clean up errors in smu7.h Ran Sun
2023-08-07 16:57 ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).