drm: Clean up errors in drm_dp_helper.h
Subsystems (2)
PATCH 1/1 drm: Clean up errors in drm_dp_helper.h
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
Signed-off-by chenxuebing <[email protected]>
--- drivers/gpu/drm/display/drm_dp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/display/drm_dp_helper.c +1 -1
@@ -2133,7 +2133,7 @@ void drm_dp_aux_unregister(struct drm_dp_aux *aux) }EXPORT_SYMBOL (drm_dp_aux_unregister); -#define PSR_SETUP_TIME (x) [DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x) +#define PSR_SETUP_TIME (x)[DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)/** * drm_dp_psr_setup_time() - PSR setup in time usec
Signature · 1 line
2.17.1
Quoted 3 lines · chenxuebing
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
Nah, checkpatch just isn't clever enough to realize it's within a macro.
BR,
Jani.
Quoted 19 lines
Signed-off-by chenxuebing <[email protected]>--- drivers/gpu/drm/display/drm_dp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/display/drm_dp_helper.c +1
-1@@ -2133,7 +2133,7 @@ void drm_dp_aux_unregister(struct drm_dp_aux *aux) }EXPORT_SYMBOL (drm_dp_aux_unregister); -#define PSR_SETUP_TIME (x) [DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x) +#define PSR_SETUP_TIME (x)[DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)/** * drm_dp_psr_setup_time() - PSR setup in time usec
Signature · 1 line
Jani Nikula, Intel