drm/virtio: move drm_connector_to_virtio_gpu_output to virtgpu_display
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 19 Dec 2019 00:57:33 +0000 (16:57 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Dec 2019 06:13:46 +0000 (07:13 +0100)
That's the only file that uses it.

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20191219005733.18960-6-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_display.c
drivers/gpu/drm/virtio/virtgpu_drv.h

index c76d69fecfeb57935d4296128583403d0b4a99c4..0966208ec30d7a122f9b1dde7572d0e5d5d43101 100644 (file)
@@ -43,6 +43,9 @@
 #define XRES_MAX  8192
 #define YRES_MAX  8192
 
+#define drm_connector_to_virtio_gpu_output(x) \
+       container_of(x, struct virtio_gpu_output, conn)
+
 static const struct drm_crtc_funcs virtio_gpu_crtc_funcs = {
        .set_config             = drm_atomic_helper_set_config,
        .destroy                = drm_crtc_cleanup,
index b16e04bd67b71a2262a572afb2cac0ce19e4b2aa..7e69c06e168eaa29f96fdf72da8a3131a556aab6 100644 (file)
@@ -133,8 +133,6 @@ struct virtio_gpu_output {
 };
 #define drm_crtc_to_virtio_gpu_output(x) \
        container_of(x, struct virtio_gpu_output, crtc)
-#define drm_connector_to_virtio_gpu_output(x) \
-       container_of(x, struct virtio_gpu_output, conn)
 
 struct virtio_gpu_framebuffer {
        struct drm_framebuffer base;