OSDN Git Service

drm/amd/display: move tg_color to dc_hw_types
authorTony Cheng <tony.cheng@amd.com>
Sun, 23 Apr 2017 14:46:02 +0000 (10:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:37 +0000 (18:06 -0400)
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h

index b785dd7..64d43db 100644 (file)
@@ -641,12 +641,12 @@ struct dc_crtc_timing {
        struct dc_crtc_timing_flags flags;
 };
 
-struct _dlg_otg_param {
-       int vstartup_start;
-       int vupdate_offset;
-       int vupdate_width;
-       int vready_offset;
-       enum signal_type signal;
+#define MAX_TG_COLOR_VALUE 0x3FF
+struct tg_color {
+       /* Maximum 10 bits color value */
+       uint16_t color_r_cr;
+       uint16_t color_g_y;
+       uint16_t color_b_cb;
 };
 
 #endif /* DC_HW_TYPES_H */
index b3deaf2..235cfe8 100644 (file)
 
 struct dc_bios;
 
-/**
- *  These parameters are required as input when doing blanking/Unblanking
-*/
-#define MAX_TG_COLOR_VALUE 0x3FF
-
-struct tg_color {
-       /* Maximum 10 bits color value */
-       uint16_t color_r_cr;
-       uint16_t color_g_y;
-       uint16_t color_b_cb;
-};
-
 /* Contains CRTC vertical/horizontal pixel counters */
 struct crtc_position {
        uint32_t vertical_count;