linux-stable/drivers/gpu/drm/ast
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
..
ast_cursor.c drm/ast: Only map cursor BOs during updates 2020-12-11 12:35:32 +01:00
ast_dp501.c drm/ast: Managed release of ast firmware 2020-08-03 09:04:37 +02:00
ast_dram_tables.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_drv.c drm/<drivers>: Constify struct drm_driver 2020-11-06 10:31:26 +01:00
ast_drv.h drm/ast: Only map cursor BOs during updates 2020-12-11 12:35:32 +01:00
ast_main.c drm/ast: Create chip AST2600 2020-11-10 08:57:24 +01:00
ast_mm.c drm/ast: Embed struct drm_device in struct ast_private 2020-08-03 09:04:28 +02:00
ast_mode.c drm: automatic legacy gamma support 2020-12-15 15:46:03 +02:00
ast_post.c drm/ast: Embed struct drm_device in struct ast_private 2020-08-03 09:04:28 +02:00
ast_tables.h drm/ast: Fixed 1920x1080 sync. polarity issue 2020-11-09 09:00:44 +01:00
Kconfig drm/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Rename ast_ttm.c to ast_mm.c 2020-07-20 09:16:05 +02:00