* [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h
@ 2023-08-01 2:39 Ran Sun
2023-08-01 9:25 ` Quan, Evan
0 siblings, 1 reply; 3+ messages in thread
From: Ran Sun @ 2023-08-01 2:39 UTC (permalink / raw)
To: alexander.deucher, airlied, daniel
Cc: amd-gfx, dri-devel, linux-kernel, Ran Sun
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following enum go on the same line
Signed-off-by: Ran Sun <sunran001@208suo.com>
---
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
index 075c0094da9c..1ba9b5fe2a5d 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
@@ -385,8 +385,7 @@ struct vega20_odn_data {
struct vega20_odn_temp_table odn_temp_table;
};
-enum OD8_FEATURE_ID
-{
+enum OD8_FEATURE_ID {
OD8_GFXCLK_LIMITS = 1 << 0,
OD8_GFXCLK_CURVE = 1 << 1,
OD8_UCLK_MAX = 1 << 2,
@@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
OD8_FAN_ZERO_RPM_CONTROL = 1 << 9
};
-enum OD8_SETTING_ID
-{
+enum OD8_SETTING_ID {
OD8_SETTING_GFXCLK_FMIN = 0,
OD8_SETTING_GFXCLK_FMAX,
OD8_SETTING_GFXCLK_FREQ1,
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h
2023-08-01 2:39 [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h Ran Sun
@ 2023-08-01 9:25 ` Quan, Evan
2023-08-07 16:41 ` Alex Deucher
0 siblings, 1 reply; 3+ messages in thread
From: Quan, Evan @ 2023-08-01 9:25 UTC (permalink / raw)
To: Ran Sun, Deucher, Alexander, airlied, daniel
Cc: dri-devel, amd-gfx, linux-kernel
[AMD Official Use Only - General]
Reviewed-by: Evan Quan <evan.quan@amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Ran
> Sun
> Sent: Tuesday, August 1, 2023 10:39 AM
> To: Deucher, Alexander <Alexander.Deucher@amd.com>; airlied@gmail.com;
> daniel@ffwll.ch
> Cc: Ran Sun <sunran001@208suo.com>; dri-devel@lists.freedesktop.org;
> amd-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h
>
> Fix the following errors reported by checkpatch:
>
> ERROR: open brace '{' following enum go on the same line
>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
> drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> index 075c0094da9c..1ba9b5fe2a5d 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> @@ -385,8 +385,7 @@ struct vega20_odn_data {
> struct vega20_odn_temp_table odn_temp_table;
> };
>
> -enum OD8_FEATURE_ID
> -{
> +enum OD8_FEATURE_ID {
> OD8_GFXCLK_LIMITS = 1 << 0,
> OD8_GFXCLK_CURVE = 1 << 1,
> OD8_UCLK_MAX = 1 << 2,
> @@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
> OD8_FAN_ZERO_RPM_CONTROL = 1 << 9
> };
>
> -enum OD8_SETTING_ID
> -{
> +enum OD8_SETTING_ID {
> OD8_SETTING_GFXCLK_FMIN = 0,
> OD8_SETTING_GFXCLK_FMAX,
> OD8_SETTING_GFXCLK_FREQ1,
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h
2023-08-01 9:25 ` Quan, Evan
@ 2023-08-07 16:41 ` Alex Deucher
0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2023-08-07 16:41 UTC (permalink / raw)
To: Quan, Evan
Cc: Ran Sun, Deucher, Alexander, airlied, daniel, amd-gfx, dri-devel,
linux-kernel
Applied. Thanks!
On Tue, Aug 1, 2023 at 5:25 AM Quan, Evan <Evan.Quan@amd.com> wrote:
>
> [AMD Official Use Only - General]
>
> Reviewed-by: Evan Quan <evan.quan@amd.com>
>
> > -----Original Message-----
> > From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Ran
> > Sun
> > Sent: Tuesday, August 1, 2023 10:39 AM
> > To: Deucher, Alexander <Alexander.Deucher@amd.com>; airlied@gmail.com;
> > daniel@ffwll.ch
> > Cc: Ran Sun <sunran001@208suo.com>; dri-devel@lists.freedesktop.org;
> > amd-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org
> > Subject: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h
> >
> > Fix the following errors reported by checkpatch:
> >
> > ERROR: open brace '{' following enum go on the same line
> >
> > Signed-off-by: Ran Sun <sunran001@208suo.com>
> > ---
> > drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
> > 1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> > b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> > index 075c0094da9c..1ba9b5fe2a5d 100644
> > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h
> > @@ -385,8 +385,7 @@ struct vega20_odn_data {
> > struct vega20_odn_temp_table odn_temp_table;
> > };
> >
> > -enum OD8_FEATURE_ID
> > -{
> > +enum OD8_FEATURE_ID {
> > OD8_GFXCLK_LIMITS = 1 << 0,
> > OD8_GFXCLK_CURVE = 1 << 1,
> > OD8_UCLK_MAX = 1 << 2,
> > @@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
> > OD8_FAN_ZERO_RPM_CONTROL = 1 << 9
> > };
> >
> > -enum OD8_SETTING_ID
> > -{
> > +enum OD8_SETTING_ID {
> > OD8_SETTING_GFXCLK_FMIN = 0,
> > OD8_SETTING_GFXCLK_FMAX,
> > OD8_SETTING_GFXCLK_FREQ1,
> > --
> > 2.17.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-07 16:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 2:39 [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h Ran Sun
2023-08-01 9:25 ` Quan, Evan
2023-08-07 16:41 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®