summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/armada/armada_debugfs.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2020-09-04 17:39:19 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-09-11 11:47:19 +0300
commitdad75a5208ec88779d9ccd2c95ef5de659209208 (patch)
tree90fff985de63bda54c18a39ca81048f90bfee6f8 /drivers/gpu/drm/armada/armada_debugfs.c
parent90ad200b4cbc92e160c3f3331bb999f87cc0fbfd (diff)
downloadlinux-dad75a5208ec88779d9ccd2c95ef5de659209208.tar.xz
drm/armada: Don't use drm_device->dev_private
Upcasting using a container_of macro is more typesafe, faster and easier for the compiler to optimize. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Cc: Russell King <linux@armlinux.org.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200904143941.110665-3-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/armada/armada_debugfs.c')
-rw-r--r--drivers/gpu/drm/armada/armada_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c
index c6fc2f1d58e9..29f4b52e3c8d 100644
--- a/drivers/gpu/drm/armada/armada_debugfs.c
+++ b/drivers/gpu/drm/armada/armada_debugfs.c
@@ -19,7 +19,7 @@ static int armada_debugfs_gem_linear_show(struct seq_file *m, void *data)
{
struct drm_info_node *node = m->private;
struct drm_device *dev = node->minor->dev;
- struct armada_private *priv = dev->dev_private;
+ struct armada_private *priv = drm_to_armada_dev(dev);
struct drm_printer p = drm_seq_file_printer(m);
mutex_lock(&priv->linear_lock);