Commit 35c4b73e authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher

drm/amd/display: Clean up errors in dcn316_smu.c

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following struct go on the same line
ERROR: code indent should use tabs where possible
Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5cc0ac06
...@@ -34,23 +34,21 @@ ...@@ -34,23 +34,21 @@
#define MAX_INSTANCE 7 #define MAX_INSTANCE 7
#define MAX_SEGMENT 6 #define MAX_SEGMENT 6
struct IP_BASE_INSTANCE struct IP_BASE_INSTANCE {
{
unsigned int segment[MAX_SEGMENT]; unsigned int segment[MAX_SEGMENT];
}; };
struct IP_BASE struct IP_BASE {
{
struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
}; };
static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0x00DC0000, 0x00E00000, 0x00E40000, 0x0243FC00, 0 } }, static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0x00DC0000, 0x00E00000, 0x00E40000, 0x0243FC00, 0 } },
{ { 0, 0, 0, 0, 0, 0 } }, { { 0, 0, 0, 0, 0, 0 } },
{ { 0, 0, 0, 0, 0, 0 } }, { { 0, 0, 0, 0, 0, 0 } },
{ { 0, 0, 0, 0, 0, 0 } }, { { 0, 0, 0, 0, 0, 0 } },
{ { 0, 0, 0, 0, 0, 0 } }, { { 0, 0, 0, 0, 0, 0 } },
{ { 0, 0, 0, 0, 0, 0 } }, { { 0, 0, 0, 0, 0, 0 } },
{ { 0, 0, 0, 0, 0, 0 } } } }; { { 0, 0, 0, 0, 0, 0 } } } };
#define REG(reg_name) \ #define REG(reg_name) \
(MP0_BASE.instance[0].segment[reg ## reg_name ## _BASE_IDX] + reg ## reg_name) (MP0_BASE.instance[0].segment[reg ## reg_name ## _BASE_IDX] + reg ## reg_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment