<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Fix the checkpatch error as open brace '{' following struct should<br />go on the same line.<br /><br />Signed-off-by: Ran Sun <sunran001@208suo.com><br />---<br /> drivers/gpu/drm/amd/include/discovery.h | 33 +++++++++----------------<br /> 1 file changed, 11 insertions(+), 22 deletions(-)<br /><br />diff --git a/drivers/gpu/drm/amd/include/discovery.h b/drivers/gpu/drm/amd/include/discovery.h<br />index f43e29722ef7..eed394df36d5 100644<br />--- a/drivers/gpu/drm/amd/include/discovery.h<br />+++ b/drivers/gpu/drm/amd/include/discovery.h<br />@@ -32,8 +32,7 @@<br /> #define VCN_INFO_TABLE_ID 0x004E4356<br /> #define MALL_INFO_TABLE_ID 0x4D414C4C<br /> <br />-typedef enum<br />-{<br />+typedef enum {<br /> IP_DISCOVERY = 0,<br /> GC,<br /> HARVEST_INFO,<br />@@ -45,16 +44,14 @@ typedef enum<br /> <br /> #pragma pack(1)<br /> <br />-typedef struct table_info<br />-{<br />+typedef struct table_info {<br /> uint16_t offset; /* Byte offset */<br /> uint16_t checksum; /* Byte sum of the table */<br /> uint16_t size; /* Table size */<br /> uint16_t padding;<br /> } table_info;<br /> <br />-typedef struct binary_header<br />-{<br />+typedef struct binary_header {<br /> /* psp structure should go at the top of this structure */<br /> uint32_t binary_signature; /* 0x7, 0x14, 0x21, 0x28 */<br /> uint16_t version_major;<br />@@ -64,15 +61,13 @@ typedef struct binary_header<br /> table_info table_list[TOTAL_TABLES];<br /> } binary_header;<br /> <br />-typedef struct die_info<br />-{<br />+typedef struct die_info {<br /> uint16_t die_id;<br /> uint16_t die_offset; /* Points to the corresponding die_header structure */<br /> } die_info;<br /> <br /> <br />-typedef struct ip_discovery_header<br />-{<br />+typedef struct ip_discovery_header {<br /> uint32_t signature; /* Table Signature */<br /> uint16_t version; /* Table Version */<br /> uint16_t size; /* Table Size */<br />@@ -89,8 +84,7 @@ typedef struct ip_discovery_header<br /> };<br /> } ip_discovery_header;<br /> <br />-typedef struct ip<br />-{<br />+typedef struct ip {<br /> uint16_t hw_id; /* Hardware ID */<br /> uint8_t number_instance; /* instance of the IP */<br /> uint8_t num_base_address; /* Number of Base Addresses */<br />@@ -107,8 +101,7 @@ typedef struct ip<br /> uint32_t base_address[]; /* variable number of Addresses */<br /> } ip;<br /> <br />-typedef struct ip_v3<br />-{<br />+typedef struct ip_v3 {<br /> uint16_t hw_id; /* Hardware ID */<br /> uint8_t instance_number; /* Instance number for the IP */<br /> uint8_t num_base_address; /* Number of base addresses*/<br />@@ -145,20 +138,16 @@ typedef struct ip_v4 {<br /> } __packed;<br /> } ip_v4;<br /> <br />-typedef struct die_header<br />-{<br />+typedef struct die_header {<br /> uint16_t die_id;<br /> uint16_t num_ips;<br /> } die_header;<br /> <br />-typedef struct ip_structure<br />-{<br />+typedef struct ip_structure {<br /> ip_discovery_header* header;<br />- struct die<br />- {<br />+ struct die {<br /> die_header *die_header;<br />- union<br />- {<br />+ union {<br /> ip *ip_list;<br /> ip_v3 *ip_v3_list;<br /> ip_v4 *ip_v4_list;</div>
</body></html>