drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap
authorPeter Rosin <peda@axentia.se>
Tue, 4 Jul 2017 10:36:58 +0000 (12:36 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:36:17 +0000 (10:36 +0200)
commita3562a0e471df02234f74ab4e0625042f44a76e9
tree98e18755587b02ecfe51213526a7c4440e4f6a65
parentb8e2b0199cc377617dc238f5106352c06dcd3fa2
drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap

I think the gamma_store can end up invalid on error. But the way I read
it, that can happen in drm_mode_gamma_set_ioctl as well, so why should
this pesky legacy fbdev stuff be any better?

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