summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-28 10:22:48 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-28 16:49:55 -0400
commit8c0dc2b9891155afc3b1fbf6b04839819ec9099b (patch)
treea44981b62d730f5079e7814620b129776b758f6c /drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
parent24a0d8538ed36ae08d8009bd4a46c6eb36d92bd1 (diff)
downloadlinux-0-day-8c0dc2b9891155afc3b1fbf6b04839819ec9099b.tar.gz
linux-0-day-8c0dc2b9891155afc3b1fbf6b04839819ec9099b.tar.xz
amdgpu/dc: move filter taps to being static const data (v2)
This just adds two accessor methods, and moves all the data to static const. v2: fix dcn build. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dce_transform.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
index 0e366021cf168..a8f60d7531bef 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
@@ -306,7 +306,7 @@ static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio)
else if (taps == 3)
return get_filter_3tap_16p(ratio);
else if (taps == 2)
- return filter_2tap_16p;
+ return get_filter_2tap_16p();
else if (taps == 1)
return NULL;
else {