[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH RFC v1 50/52] drm/xen: Use struct drm_crtc::drm_dev instead of struct drm_crtc::dev



Prepare dropping the alias "dev" for struct drm_crtc::drm_dev. "drm_dev"
is the better name as "dev" is usually a struct device pointer.

No semantic changes.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
 drivers/gpu/drm/xen/xen_drm_front_kms.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/xen/xen_drm_front_kms.c 
b/drivers/gpu/drm/xen/xen_drm_front_kms.c
index dfa78a49a6d9..72042139b73a 100644
--- a/drivers/gpu/drm/xen/xen_drm_front_kms.c
+++ b/drivers/gpu/drm/xen/xen_drm_front_kms.c
@@ -93,7 +93,7 @@ static const struct drm_mode_config_funcs mode_config_funcs = 
{
 static void send_pending_event(struct xen_drm_front_drm_pipeline *pipeline)
 {
        struct drm_crtc *crtc = &pipeline->pipe.crtc;
-       struct drm_device *dev = crtc->dev;
+       struct drm_device *dev = crtc->drm_dev;
        unsigned long flags;
 
        spin_lock_irqsave(&dev->event_lock, flags);
@@ -113,7 +113,7 @@ static void display_enable(struct drm_simple_display_pipe 
*pipe,
        struct drm_framebuffer *fb = plane_state->fb;
        int ret, idx;
 
-       if (!drm_dev_enter(pipe->crtc.dev, &idx))
+       if (!drm_dev_enter(pipe->crtc.drm_dev, &idx))
                return;
 
        ret = xen_drm_front_mode_set(pipeline, crtc->x, crtc->y,
@@ -135,7 +135,7 @@ static void display_disable(struct drm_simple_display_pipe 
*pipe)
                        to_xen_drm_pipeline(pipe);
        int ret = 0, idx;
 
-       if (drm_dev_enter(pipe->crtc.dev, &idx)) {
+       if (drm_dev_enter(pipe->crtc.drm_dev, &idx)) {
                ret = xen_drm_front_mode_set(pipeline, 0, 0, 0, 0, 0,
                                             xen_drm_front_fb_to_cookie(NULL));
                drm_dev_exit(idx);
@@ -251,7 +251,7 @@ static void display_update(struct drm_simple_display_pipe 
*pipe,
 
        event = crtc->state->event;
        if (event) {
-               struct drm_device *dev = crtc->dev;
+               struct drm_device *dev = crtc->drm_dev;
                unsigned long flags;
 
                WARN_ON(pipeline->pending_event);
@@ -263,7 +263,7 @@ static void display_update(struct drm_simple_display_pipe 
*pipe,
                spin_unlock_irqrestore(&dev->event_lock, flags);
        }
 
-       if (!drm_dev_enter(pipe->crtc.dev, &idx)) {
+       if (!drm_dev_enter(pipe->crtc.drm_dev, &idx)) {
                send_pending_event(pipeline);
                return;
        }
-- 
2.39.2




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.