summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/openchrome
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2020-11-23 14:06:42 -0800
committerKevin Brace <kevinbrace@gmx.com>2020-11-23 14:06:42 -0800
commit7c8c4424757712fe799c3394397cd5613becf963 (patch)
tree50d954a5ace1efd771948ff9d272dc77f0bcbc3c /drivers/gpu/drm/openchrome
parentd31ebfb1ba9b1cd901d067cda0492f0cb266b76f (diff)
drm/openchrome: Discontinue drm_mode_crtc_load_lut()
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'drivers/gpu/drm/openchrome')
-rw-r--r--drivers/gpu/drm/openchrome/openchrome_crtc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/drm/openchrome/openchrome_crtc.c b/drivers/gpu/drm/openchrome/openchrome_crtc.c
index fcce3fbbe33a..dfdecc7af125 100644
--- a/drivers/gpu/drm/openchrome/openchrome_crtc.c
+++ b/drivers/gpu/drm/openchrome/openchrome_crtc.c
@@ -1563,21 +1563,6 @@ via_set_iga2_downscale_source_timing(struct drm_crtc *crtc,
drm_mode_destroy(crtc->dev, src_timing);
}
-static void
-drm_mode_crtc_load_lut(struct drm_crtc *crtc)
-{
- int size = crtc->gamma_size * sizeof(uint16_t);
- void *r_base, *g_base, *b_base;
-
- if (size) {
- r_base = crtc->gamma_store;
- g_base = r_base + size;
- b_base = g_base + size;
- crtc->funcs->gamma_set(crtc, r_base, g_base, b_base,
- crtc->gamma_size, NULL);
- }
-}
-
static void openchrome_crtc_dpms(struct drm_crtc *crtc, int mode)
{
struct openchrome_drm_private *dev_private =
@@ -1605,7 +1590,6 @@ static void openchrome_crtc_dpms(struct drm_crtc *crtc, int mode)
/* disable simultaneous */
svga_wcrt_mask(VGABASE, 0x6B, 0x00, BIT(3));
- drm_mode_crtc_load_lut(crtc);
break;
}
@@ -1627,7 +1611,6 @@ static void openchrome_crtc_dpms(struct drm_crtc *crtc, int mode)
/* disable simultaneous */
svga_wcrt_mask(VGABASE, 0x6B, 0x00, BIT(3));
- drm_mode_crtc_load_lut(crtc);
break;
}
}