mirror-linux/drivers/gpu/drm/arm
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
..
display drm: automatic legacy gamma support 2020-12-15 15:46:03 +02:00
Kconfig drm/arm: Kconfig annotate drivers as COMPILE_TEST 2020-06-15 14:55:21 +01:00
Makefile
hdlcd_crtc.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
hdlcd_drv.c drm/<drivers>: Constify struct drm_driver 2020-11-06 10:31:26 +01:00
hdlcd_drv.h
hdlcd_regs.h
malidp_crtc.c drm: automatic legacy gamma support 2020-12-15 15:46:03 +02:00
malidp_drv.c drm/<drivers>: Constify struct drm_driver 2020-11-06 10:31:26 +01:00
malidp_drv.h drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_hw.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
malidp_hw.h drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500 2019-10-08 16:13:36 +01:00
malidp_mw.c drm/arm/mali: make malidp_mw_connector_helper_funcs static 2019-12-20 15:23:51 +00:00
malidp_mw.h
malidp_planes.c drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally 2020-08-18 15:26:32 +02:00
malidp_regs.h drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500 2019-10-08 16:13:36 +01:00