forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/xen/xen_drm_front_conn.c
....@@ -9,7 +9,8 @@
99 */
1010
1111 #include <drm/drm_atomic_helper.h>
12
-#include <drm/drm_crtc_helper.h>
12
+#include <drm/drm_drv.h>
13
+#include <drm/drm_probe_helper.h>
1314
1415 #include <video/videomode.h>
1516
....@@ -32,6 +33,7 @@
3233 DRM_FORMAT_ARGB4444,
3334 DRM_FORMAT_XRGB1555,
3435 DRM_FORMAT_ARGB1555,
36
+ DRM_FORMAT_YUYV,
3537 };
3638
3739 const u32 *xen_drm_front_conn_get_formats(int *format_count)
....@@ -89,7 +91,6 @@
8991 };
9092
9193 static const struct drm_connector_funcs connector_funcs = {
92
- .dpms = drm_helper_connector_dpms,
9394 .fill_modes = drm_helper_probe_single_connector_modes,
9495 .destroy = drm_connector_cleanup,
9596 .reset = drm_atomic_helper_connector_reset,