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)
commit964c60063bff6ae7631eb4d9c0bac3913749ca9f
treeae7bbb7b67775ac473d81c8b3313e73ca33f6f54
parente2b9dd304aed9e1415d4e001b81a10e2a6aeef7b
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