diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index 145a7c0aad29..2721f170bf3f 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c @@ -450,40 +450,6 @@ int rockchip_drm_add_modes_noedid(struct drm_connector *connector) } EXPORT_SYMBOL(rockchip_drm_add_modes_noedid); -static const struct rockchip_drm_width_dclk { - int width; - u32 dclk_khz; -} rockchip_drm_dclk[] = { - {1920, 148500}, - {2048, 200000}, - {2560, 280000}, - {3840, 594000}, - {4096, 594000}, - {7680, 2376000}, -}; - -u32 rockchip_drm_get_dclk_by_width(int width) -{ - int i = 0; - u32 dclk_khz; - - for (i = 0; i < ARRAY_SIZE(rockchip_drm_dclk); i++) { - if (width == rockchip_drm_dclk[i].width) { - dclk_khz = rockchip_drm_dclk[i].dclk_khz; - break; - } - } - - if (i == ARRAY_SIZE(rockchip_drm_dclk)) { - DRM_ERROR("Can't not find %d width solution and use 148500 khz as max dclk\n", width); - - dclk_khz = 148500; - } - - return dclk_khz; -} -EXPORT_SYMBOL(rockchip_drm_get_dclk_by_width); - static const char * const color_encoding_name[] = { [DRM_COLOR_YCBCR_BT601] = "BT.601", [DRM_COLOR_YCBCR_BT709] = "BT.709", diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h index 923f48863005..2696f7ade3fd 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h @@ -599,7 +599,6 @@ int rockchip_drm_add_modes_noedid(struct drm_connector *connector); void rockchip_drm_te_handle(struct drm_crtc *crtc); void drm_mode_convert_to_split_mode(struct drm_display_mode *mode); void drm_mode_convert_to_origin_mode(struct drm_display_mode *mode); -u32 rockchip_drm_get_dclk_by_width(int width); const char *rockchip_drm_get_color_encoding_name(enum drm_color_encoding encoding); const char *rockchip_drm_get_color_range_name(enum drm_color_range range); #if IS_REACHABLE(CONFIG_DRM_ROCKCHIP)