Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix recent checkpatch errors in amdgpu_dm

- Use tabs, not spaces.
- Brace and parentheses placement

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Harry Wentland and committed by
Alex Deucher
af7cefc6 0f35b0a7

+5 -6
+2 -2
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
··· 747 747 AMDGPU_TRANSFER_FUNCTION_GAMMA22_INV_EOTF, 748 748 AMDGPU_TRANSFER_FUNCTION_GAMMA24_INV_EOTF, 749 749 AMDGPU_TRANSFER_FUNCTION_GAMMA26_INV_EOTF, 750 - AMDGPU_TRANSFER_FUNCTION_COUNT 750 + AMDGPU_TRANSFER_FUNCTION_COUNT 751 751 }; 752 752 753 753 struct dm_plane_state { ··· 844 844 845 845 int abm_level; 846 846 847 - /** 847 + /** 848 848 * @regamma_tf: 849 849 * 850 850 * Pre-defined transfer function for converting internal FB -> wire
+2 -3
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
··· 630 630 static enum dc_transfer_func_predefined 631 631 amdgpu_tf_to_dc_tf(enum amdgpu_transfer_function tf) 632 632 { 633 - switch (tf) 634 - { 633 + switch (tf) { 635 634 default: 636 635 case AMDGPU_TRANSFER_FUNCTION_DEFAULT: 637 636 case AMDGPU_TRANSFER_FUNCTION_IDENTITY: ··· 1224 1225 * plane and CRTC degamma at the same time. Explicitly reject atomic 1225 1226 * updates when userspace sets both plane and CRTC degamma properties. 1226 1227 */ 1227 - if (has_crtc_cm_degamma && ret != -EINVAL){ 1228 + if (has_crtc_cm_degamma && ret != -EINVAL) { 1228 1229 drm_dbg_kms(crtc->base.crtc->dev, 1229 1230 "doesn't support plane and CRTC degamma at the same time\n"); 1230 1231 return -EINVAL;
+1 -1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
··· 305 305 { 306 306 struct amdgpu_device *adev = drm_to_adev(crtc->dev); 307 307 308 - if(adev->dm.dc->caps.color.mpc.ogam_ram) 308 + if (adev->dm.dc->caps.color.mpc.ogam_ram) 309 309 drm_object_attach_property(&crtc->base, 310 310 adev->mode_info.regamma_tf_property, 311 311 AMDGPU_TRANSFER_FUNCTION_DEFAULT);