linux-stable/drivers/gpu/drm/ingenic
Tomi Valkeinen 6ca2ab8086 drm: automatic legacy gamma support
To support legacy gamma ioctls the drivers need to set
drm_crtc_funcs.gamma_set either to a custom implementation or to
drm_atomic_helper_legacy_gamma_set. Most of the atomic drivers do the
latter.

We can simplify this by making the core handle it automatically.

Move the drm_atomic_helper_legacy_gamma_set() functionality into
drm_color_mgmt.c to make drm_mode_gamma_set_ioctl() use
drm_crtc_funcs.gamma_set if set or GAMMA_LUT property if not.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201211114237.213288-2-tomi.valkeinen@ti.com
2020-12-15 15:46:03 +02:00
..
ingenic-drm-drv.c drm: automatic legacy gamma support 2020-12-15 15:46:03 +02:00
ingenic-drm.h drm/ingenic: Add support for serial 8-bit delta-RGB panels 2020-12-08 13:56:00 +00:00
ingenic-ipu.c drm/ingenic: ipu: Search for scaling coefs up to 102% of the screen 2020-11-11 11:47:11 +00:00
ingenic-ipu.h drm/ingenic: Add support for the IPU 2020-07-17 00:46:17 +02:00
Kconfig drm/ingenic: depend on COMMON_CLK to fix compile tests 2020-12-04 10:05:25 +00:00
Makefile drm/ingenic: Add support for the IPU 2020-07-17 00:46:17 +02:00