OSDN Git Service

drm/amd/dc: Clean up errors in hpd_regs.h
authorRan Sun <sunran001@208suo.com>
Wed, 2 Aug 2023 02:47:25 +0000 (02:47 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:42:51 +0000 (09:42 -0400)
Fix the following errors reported by checkpatch:

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

Signed-off-by: Ran Sun <sunran001@208suo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h

index dcfdd71..debb363 100644 (file)
 #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) \