Skip to contentSkip to conversation

drm/amd/dc: Clean up errors in hpd_regs.h

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

Subsystems (3)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amd/dc: Clean up errors in hpd_regs.h

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxV)

---
 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h +5 -5
index dcfdd71b2304..debb363cfcf4 100644
@@ -36,17 +36,17 @@
 #define ONE_MORE_5 6
 
 
-#define HPD_GPIO_REG_LIST_ENTRY(type,cd,id) \
+#define HPD_GPIO_REG_LIST_ENTRY(type, cd, id) \
 	.type ## _reg =  REG(DC_GPIO_HPD_## type),\
 	.type ## _mask =  DC_GPIO_HPD_ ## type ## __DC_GPIO_HPD ## id ## _ ## type ## _MASK,\
 	.type ## _shift = DC_GPIO_HPD_ ## type ## __DC_GPIO_HPD ## id ## _ ## type ## __SHIFT
 
 #define HPD_GPIO_REG_LIST(id) \
 	{\
-	HPD_GPIO_REG_LIST_ENTRY(MASK,cd,id),\
-	HPD_GPIO_REG_LIST_ENTRY(A,cd,id),\
-	HPD_GPIO_REG_LIST_ENTRY(EN,cd,id),\
-	HPD_GPIO_REG_LIST_ENTRY(Y,cd,id)\
+	HPD_GPIO_REG_LIST_ENTRY(MASK, cd, id),\
+	HPD_GPIO_REG_LIST_ENTRY(A, cd, id),\
+	HPD_GPIO_REG_LIST_ENTRY(EN, cd, id),\
+	HPD_GPIO_REG_LIST_ENTRY(Y, cd, id)\
 	}
 
 #define HPD_REG_LIST(id) \
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 40 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxV)

---
 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h +5 -6
index dcfdd71b2304..debb363cfcf4 100644
@@ -36,17 +36,17 @@
 #define ONE_MORE_5 6
 
 
-#define HPD_GPIO_REG_LIST_ENTRY(type,cd,id) \
+#define HPD_GPIO_REG_LIST_ENTRY(type, cd, id) \
        .type ## _reg =  REG(DC_GPIO_HPD_## type),\
        .type ## _mask =  DC_GPIO_HPD_ ## type ## __DC_GPIO_HPD ## id ## _ ## type ## _MASK,\
        .type ## _shift = DC_GPIO_HPD_ ## type ## __DC_GPIO_HPD ## id ## _ ## type ## __SHIFT
 
 #define HPD_GPIO_REG_LIST(id) \
        {\
-       HPD_GPIO_REG_LIST_ENTRY(MASK,cd,id),\
-       HPD_GPIO_REG_LIST_ENTRY(A,cd,id),\
-       HPD_GPIO_REG_LIST_ENTRY(EN,cd,id),\
-       HPD_GPIO_REG_LIST_ENTRY(Y,cd,id)\
+       HPD_GPIO_REG_LIST_ENTRY(MASK, cd, id),\
+       HPD_GPIO_REG_LIST_ENTRY(A, cd, id),\
+       HPD_GPIO_REG_LIST_ENTRY(EN, cd, id),\
+       HPD_GPIO_REG_LIST_ENTRY(Y, cd, id)\
        }
 
 #define HPD_REG_LIST(id) \
--

2.17.1