[PATCH v2 0/2] drm: fix and cleanup legacy gamma support