Skip to content

Commit af7cefc

Browse files
Harry Wentlandalexdeucher
authored andcommitted
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>
1 parent 0f35b0a commit af7cefc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ enum amdgpu_transfer_function {
747747
AMDGPU_TRANSFER_FUNCTION_GAMMA22_INV_EOTF,
748748
AMDGPU_TRANSFER_FUNCTION_GAMMA24_INV_EOTF,
749749
AMDGPU_TRANSFER_FUNCTION_GAMMA26_INV_EOTF,
750-
AMDGPU_TRANSFER_FUNCTION_COUNT
750+
AMDGPU_TRANSFER_FUNCTION_COUNT
751751
};
752752

753753
struct dm_plane_state {
@@ -844,7 +844,7 @@ struct dm_crtc_state {
844844

845845
int abm_level;
846846

847-
/**
847+
/**
848848
* @regamma_tf:
849849
*
850850
* Pre-defined transfer function for converting internal FB -> wire

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ static int __set_input_tf(struct dc_color_caps *caps, struct dc_transfer_func *f
630630
static enum dc_transfer_func_predefined
631631
amdgpu_tf_to_dc_tf(enum amdgpu_transfer_function tf)
632632
{
633-
switch (tf)
634-
{
633+
switch (tf) {
635634
default:
636635
case AMDGPU_TRANSFER_FUNCTION_DEFAULT:
637636
case AMDGPU_TRANSFER_FUNCTION_IDENTITY:
@@ -1225,7 +1224,7 @@ int amdgpu_dm_update_plane_color_mgmt(struct dm_crtc_state *crtc,
12251224
* plane and CRTC degamma at the same time. Explicitly reject atomic
12261225
* updates when userspace sets both plane and CRTC degamma properties.
12271226
*/
1228-
if (has_crtc_cm_degamma && ret != -EINVAL){
1227+
if (has_crtc_cm_degamma && ret != -EINVAL) {
12291228
drm_dbg_kms(crtc->base.crtc->dev,
12301229
"doesn't support plane and CRTC degamma at the same time\n");
12311230
return -EINVAL;

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ dm_crtc_additional_color_mgmt(struct drm_crtc *crtc)
305305
{
306306
struct amdgpu_device *adev = drm_to_adev(crtc->dev);
307307

308-
if(adev->dm.dc->caps.color.mpc.ogam_ram)
308+
if (adev->dm.dc->caps.color.mpc.ogam_ram)
309309
drm_object_attach_property(&crtc->base,
310310
adev->mode_info.regamma_tf_property,
311311
AMDGPU_TRANSFER_FUNCTION_DEFAULT);

0 commit comments

Comments
 (0)