Commit b2edaac4 authored by Srinivasan Shanmugam's avatar Srinivasan Shanmugam Committed by Alex Deucher

drm/amd/amdgpu: Fix style errors in amdgpu_display.c

Fix following checkpatch errors in amdgpu_display.c

ERROR: spaces required around that '=' (ctx:VxW)
ERROR: that open brace { should be on the previous line
ERROR: else should follow close brace '}'

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 27e6be5d
...@@ -98,7 +98,7 @@ static void amdgpu_display_flip_callback(struct dma_fence *f, ...@@ -98,7 +98,7 @@ static void amdgpu_display_flip_callback(struct dma_fence *f,
static bool amdgpu_display_flip_handle_fence(struct amdgpu_flip_work *work, static bool amdgpu_display_flip_handle_fence(struct amdgpu_flip_work *work,
struct dma_fence **f) struct dma_fence **f)
{ {
struct dma_fence *fence= *f; struct dma_fence *fence = *f;
if (fence == NULL) if (fence == NULL)
return false; return false;
...@@ -1252,21 +1252,21 @@ const struct drm_mode_config_funcs amdgpu_mode_funcs = { ...@@ -1252,21 +1252,21 @@ const struct drm_mode_config_funcs amdgpu_mode_funcs = {
.fb_create = amdgpu_display_user_framebuffer_create, .fb_create = amdgpu_display_user_framebuffer_create,
}; };
static const struct drm_prop_enum_list amdgpu_underscan_enum_list[] = static const struct drm_prop_enum_list amdgpu_underscan_enum_list[] = {
{ { UNDERSCAN_OFF, "off" }, { UNDERSCAN_OFF, "off" },
{ UNDERSCAN_ON, "on" }, { UNDERSCAN_ON, "on" },
{ UNDERSCAN_AUTO, "auto" }, { UNDERSCAN_AUTO, "auto" },
}; };
static const struct drm_prop_enum_list amdgpu_audio_enum_list[] = static const struct drm_prop_enum_list amdgpu_audio_enum_list[] = {
{ { AMDGPU_AUDIO_DISABLE, "off" }, { AMDGPU_AUDIO_DISABLE, "off" },
{ AMDGPU_AUDIO_ENABLE, "on" }, { AMDGPU_AUDIO_ENABLE, "on" },
{ AMDGPU_AUDIO_AUTO, "auto" }, { AMDGPU_AUDIO_AUTO, "auto" },
}; };
/* XXX support different dither options? spatial, temporal, both, etc. */ /* XXX support different dither options? spatial, temporal, both, etc. */
static const struct drm_prop_enum_list amdgpu_dither_enum_list[] = static const struct drm_prop_enum_list amdgpu_dither_enum_list[] = {
{ { AMDGPU_FMT_DITHER_DISABLE, "off" }, { AMDGPU_FMT_DITHER_DISABLE, "off" },
{ AMDGPU_FMT_DITHER_ENABLE, "on" }, { AMDGPU_FMT_DITHER_ENABLE, "on" },
}; };
...@@ -1496,8 +1496,7 @@ int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev, ...@@ -1496,8 +1496,7 @@ int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev,
ret |= DRM_SCANOUTPOS_ACCURATE; ret |= DRM_SCANOUTPOS_ACCURATE;
vbl_start = vbl & 0x1fff; vbl_start = vbl & 0x1fff;
vbl_end = (vbl >> 16) & 0x1fff; vbl_end = (vbl >> 16) & 0x1fff;
} } else {
else {
/* No: Fake something reasonable which gives at least ok results. */ /* No: Fake something reasonable which gives at least ok results. */
vbl_start = mode->crtc_vdisplay; vbl_start = mode->crtc_vdisplay;
vbl_end = 0; vbl_end = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment