summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/udl/udl_drv.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2019-04-05 13:17:14 +1000
committerDave Airlie <airlied@redhat.com>2019-04-24 13:45:48 +1000
commitfd96e0dba19c53c2d66f2a398716bb74df8ca85e (patch)
tree2349213182c26d0a77c31027ab19a49f7e615c8b /drivers/gpu/drm/udl/udl_drv.h
parent331ca3a3d6a75f9e88b3545a4815502dfce308d4 (diff)
downloadlinux-next-fd96e0dba19c53c2d66f2a398716bb74df8ca85e.tar.gz
drm/udl: introduce a macro to convert dev to udl.
This just makes it easier to later embed drm into udl. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190405031715.5959-3-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/udl/udl_drv.h')
-rw-r--r--drivers/gpu/drm/udl/udl_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_drv.h b/drivers/gpu/drm/udl/udl_drv.h
index 4ae67d882eae..b3e08e876d62 100644
--- a/drivers/gpu/drm/udl/udl_drv.h
+++ b/drivers/gpu/drm/udl/udl_drv.h
@@ -71,6 +71,8 @@ struct udl_device {
atomic_t cpu_kcycles_used; /* transpired during pixel processing */
};
+#define to_udl(x) ((x)->dev_private)
+
struct udl_gem_object {
struct drm_gem_object base;
struct page **pages;