]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths
authorPeter Rosin <peda@axentia.se>
Thu, 13 Jul 2017 16:25:27 +0000 (18:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Jul 2017 13:53:06 +0000 (15:53 +0200)
commit98284b59a406a275eb4a107284506e9a8bfa9a0f
treeae7bbb7b67775ac473d81c8b3313e73ca33f6f54
parentea10192632ccc1c6ad87692701593b8f62f4f95c
drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths

The legacy path implements setcmap in terms of crtc .gamma_set.

The atomic path implements setcmap by directly updating the crtc gamma_lut
property.

This has a couple of benefits:
- it makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get
  completely obsolete. They are now unused and subject for removal.
- atomic drivers that support clut modes get fbdev support for those from
  the drm core. This includes atmel-hlcdc, but perhaps others as well?

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170713162538.22788-4-peda@axentia.se
drivers/gpu/drm/drm_fb_helper.c