drm/amd/display: ifdef some code only needed for DCN
authorHarry Wentland <harry.wentland@amd.com>
Wed, 3 May 2017 18:21:37 +0000 (14:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:00 +0000 (18:07 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/core_types.h
drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h

index fcda3c7db8186c6122500a05ca7475ed64a8c9fa..919c6632ee3e526fbcafd1fc60fbe7a02984ee9a 100644 (file)
 #include "dcn_calcs.h"
 #include "ddc_service_types.h"
 #include "dc_bios_types.h"
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "mem_input.h"
 #include "mpc.h"
+#endif
 
 struct core_stream;
 
@@ -256,7 +258,9 @@ struct resource_pool {
 
        struct abm *abm;
        struct dmcu *dmcu;
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
        struct mpc *mpc;
+#endif
 
        const struct resource_funcs *funcs;
        const struct resource_caps *res_cap;
index 0f952e5b3ae8185c6d206c72ec134241d4621577..1298d306db69bb9181acca70b5553f660fa96010 100644 (file)
@@ -122,7 +122,9 @@ struct ipp_funcs {
                struct input_pixel_processor *ipp,
                const struct pwl_params *params);
 
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
        void (*ipp_destroy)(struct input_pixel_processor **ipp);
+#endif
 };
 
 #endif /* __DAL_IPP_H__ */
index 64d43257db96b8a7e6c66a1e84e1a91e1248ce8d..a101f4b5e0c764d9ae1db21a50a2ee9d39e9abe2 100644 (file)
@@ -27,7 +27,9 @@
 #define __DAL_OPP_H__
 
 #include "hw_shared.h"
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "dc_hw_types.h"
+#endif
 #include "transform.h"
 
 struct fixed31_32;