drm/amd/display: Fix recent checkpatch errors in amdgpu_dm
authorHarry Wentland <harry.wentland@amd.com>
Wed, 20 Dec 2023 20:18:05 +0000 (15:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jan 2024 21:10:44 +0000 (16:10 -0500)
 - 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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c

index 2d5af83d40b53bd128a85235a44126e8b3f95734..9c1871b866cc973091cd9a7bc5bc604201f6bd16 100644 (file)
@@ -747,7 +747,7 @@ enum amdgpu_transfer_function {
        AMDGPU_TRANSFER_FUNCTION_GAMMA22_INV_EOTF,
        AMDGPU_TRANSFER_FUNCTION_GAMMA24_INV_EOTF,
        AMDGPU_TRANSFER_FUNCTION_GAMMA26_INV_EOTF,
-        AMDGPU_TRANSFER_FUNCTION_COUNT
+       AMDGPU_TRANSFER_FUNCTION_COUNT
 };
 
 struct dm_plane_state {
@@ -844,7 +844,7 @@ struct dm_crtc_state {
 
        int abm_level;
 
-        /**
+       /**
         * @regamma_tf:
         *
         * Pre-defined transfer function for converting internal FB -> wire
index c6ed0d854b01d224c2256c65a145718f39abb521..36bf65a8cd6e6670c172e94fb6f9e46aa9eccb69 100644 (file)
@@ -630,8 +630,7 @@ static int __set_input_tf(struct dc_color_caps *caps, struct dc_transfer_func *f
 static enum dc_transfer_func_predefined
 amdgpu_tf_to_dc_tf(enum amdgpu_transfer_function tf)
 {
-       switch (tf)
-       {
+       switch (tf) {
        default:
        case AMDGPU_TRANSFER_FUNCTION_DEFAULT:
        case AMDGPU_TRANSFER_FUNCTION_IDENTITY:
@@ -1225,7 +1224,7 @@ int amdgpu_dm_update_plane_color_mgmt(struct dm_crtc_state *crtc,
         * plane and CRTC degamma at the same time. Explicitly reject atomic
         * updates when userspace sets both plane and CRTC degamma properties.
         */
-       if (has_crtc_cm_degamma && ret != -EINVAL){
+       if (has_crtc_cm_degamma && ret != -EINVAL) {
                drm_dbg_kms(crtc->base.crtc->dev,
                            "doesn't support plane and CRTC degamma at the same time\n");
                        return -EINVAL;
index 4439e5a27362c3665aef9b9aa809de3766ceb48a..6e715ef3a5566edb1f65bab544b2017dc176b7a3 100644 (file)
@@ -305,7 +305,7 @@ dm_crtc_additional_color_mgmt(struct drm_crtc *crtc)
 {
        struct amdgpu_device *adev = drm_to_adev(crtc->dev);
 
-       if(adev->dm.dc->caps.color.mpc.ogam_ram)
+       if (adev->dm.dc->caps.color.mpc.ogam_ram)
                drm_object_attach_property(&crtc->base,
                                           adev->mode_info.regamma_tf_property,
                                           AMDGPU_TRANSFER_FUNCTION_DEFAULT);