drm/amd/display/dc/dce110/dce110_compressor: Strip out unused function 'controller_id...
authorLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2021 19:19:13 +0000 (19:19 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:53:27 +0000 (23:53 -0500)
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.c:429:14: warning: no previous prototype for ‘controller_id_to_index’ [-Wmissing-prototypes]

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c

index 18b0a69..44564a4 100644 (file)
@@ -425,31 +425,6 @@ void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y)
         */
 }
 
-
-unsigned int controller_id_to_index(enum controller_id controller_id)
-{
-       unsigned int index = 0;
-
-       switch (controller_id) {
-       case CONTROLLER_ID_D0:
-               index = 0;
-               break;
-       case CONTROLLER_ID_D1:
-               index = 1;
-               break;
-       case CONTROLLER_ID_D2:
-               index = 2;
-               break;
-       case CONTROLLER_ID_D3:
-               index = 3;
-               break;
-       default:
-               break;
-       }
-       return index;
-}
-
-
 static const struct compressor_funcs dce110_compressor_funcs = {
        .power_up_fbc = dce110_compressor_power_up_fbc,
        .enable_fbc = dce110_compressor_enable_fbc,