File vga_switcheroo-hack.diff of Package drm

---
 build-include/linux/vga_switcheroo.h             |    9 +++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c |    3 +--
 drivers/gpu/drm/radeon/radeon_atpx_handler.c     |    3 +--
 3 files changed, 11 insertions(+), 4 deletions(-)

--- /dev/null
+++ b/build-include/linux/vga_switcheroo.h
@@ -0,0 +1,9 @@
+#include_next <linux/vga_switcheroo.h>
+
+#ifndef VGA_SWITCHEROO_CAN_SWITCH_DDC
+#define VGA_SWITCHEROO_CAN_SWITCH_DDC  0
+#define vga_switcheroo_handler_flags() 0
+#define vga_switcheroo_lock_ddc(dev)   /* NOP */
+#define vga_switcheroo_unlock_ddc(dev) /* NOP */
+#define drm_get_edid_switcheroo(x, y) NULL
+#endif
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
@@ -555,14 +555,13 @@ static bool amdgpu_atpx_detect(void)
 void amdgpu_register_atpx_handler(void)
 {
 	bool r;
-	enum vga_switcheroo_handler_flags_t handler_flags = 0;
 
 	/* detect if we have any ATPX + 2 VGA in the system */
 	r = amdgpu_atpx_detect();
 	if (!r)
 		return;
 
-	vga_switcheroo_register_handler(&amdgpu_atpx_handler, handler_flags);
+	vga_switcheroo_register_handler(&amdgpu_atpx_handler);
 }
 
 /**
--- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
+++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
@@ -554,14 +554,13 @@ static bool radeon_atpx_detect(void)
 void radeon_register_atpx_handler(void)
 {
 	bool r;
-	enum vga_switcheroo_handler_flags_t handler_flags = 0;
 
 	/* detect if we have any ATPX + 2 VGA in the system */
 	r = radeon_atpx_detect();
 	if (!r)
 		return;
 
-	vga_switcheroo_register_handler(&radeon_atpx_handler, handler_flags);
+	vga_switcheroo_register_handler(&radeon_atpx_handler);
 }
 
 /**