Skip to contentSkip to conversation

drm/amdgpu: Clean up errors in amdgpu_atombios.h

PATCH Applied Ran Sun 2 participants 2 messages Aug 2, 2023 – Aug 7, 2023

Subsystems (2)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Clean up errors in amdgpu_atombios.h

Fix the following errors reported by checkpatch:

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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h +3 -6
index b639a80ee3fc..0811474e8fd3 100644
@@ -89,8 +89,7 @@ struct atom_memory_info {
 
 #define MAX_AC_TIMING_ENTRIES 16
 
-struct atom_memory_clock_range_table
-{
+struct atom_memory_clock_range_table {
 	u8 num_entries;
 	u8 rsv[3];
 	u32 mclk[MAX_AC_TIMING_ENTRIES];
@@ -118,14 +117,12 @@ struct atom_mc_reg_table {
 
 #define MAX_VOLTAGE_ENTRIES 32
 
-struct atom_voltage_table_entry
-{
+struct atom_voltage_table_entry {
 	u16 value;
 	u32 smio_low;
 };
 
-struct atom_voltage_table
-{
+struct atom_voltage_table {
 	u32 count;
 	u32 mask_low;
 	u32 phase_delay;
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 44 lines · Ran Sun

Fix the following errors reported by checkpatch:

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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h +3 -7
index b639a80ee3fc..0811474e8fd3 100644
@@ -89,8 +89,7 @@ struct atom_memory_info {
 
 #define MAX_AC_TIMING_ENTRIES 16
 
-struct atom_memory_clock_range_table
-{
+struct atom_memory_clock_range_table {
        u8 num_entries;
        u8 rsv[3];
        u32 mclk[MAX_AC_TIMING_ENTRIES];
@@ -118,14 +117,12 @@ struct atom_mc_reg_table {
 
 #define MAX_VOLTAGE_ENTRIES 32
 
-struct atom_voltage_table_entry
-{
+struct atom_voltage_table_entry {
        u16 value;
        u32 smio_low;
 };
 
-struct atom_voltage_table
-{
+struct atom_voltage_table {
        u32 count;
        u32 mask_low;
        u32 phase_delay;
--

2.17.1