diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index 1c57fefc364c..0a8ee2411180 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -311,31 +311,7 @@ static int amdgpu_fbdev_destroy(struct drm_device *dev, struct amdgpu_fbdev *rfb | |||
311 | return 0; | 311 | return 0; |
312 | } | 312 | } |
313 | 313 | ||
314 | /** Sets the color ramps on behalf of fbcon */ | ||
315 | static void amdgpu_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, | ||
316 | u16 blue, int regno) | ||
317 | { | ||
318 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | ||
319 | |||
320 | amdgpu_crtc->lut_r[regno] = red >> 6; | ||
321 | amdgpu_crtc->lut_g[regno] = green >> 6; | ||
322 | amdgpu_crtc->lut_b[regno] = blue >> 6; | ||
323 | } | ||
324 | |||
325 | /** Gets the color ramps on behalf of fbcon */ | ||
326 | static void amdgpu_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, | ||
327 | u16 *blue, int regno) | ||
328 | { | ||
329 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | ||
330 | |||
331 | *red = amdgpu_crtc->lut_r[regno] << 6; | ||
332 | *green = amdgpu_crtc->lut_g[regno] << 6; | ||
333 | *blue = amdgpu_crtc->lut_b[regno] << 6; | ||
334 | } | ||
335 | |||
336 | static const struct drm_fb_helper_funcs amdgpu_fb_helper_funcs = { | 314 | static const struct drm_fb_helper_funcs amdgpu_fb_helper_funcs = { |
337 | .gamma_set = amdgpu_crtc_fb_gamma_set, | ||
338 | .gamma_get = amdgpu_crtc_fb_gamma_get, | ||
339 | .fb_probe = amdgpufb_create, | 315 | .fb_probe = amdgpufb_create, |
340 | }; | 316 | }; |
341 | 317 | ||