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
This commit is contained in:
@@ -203,7 +203,7 @@ int udl_gem_mmap(struct drm_file *file, struct drm_device *dev,
|
||||
{
|
||||
struct udl_gem_object *gobj;
|
||||
struct drm_gem_object *obj;
|
||||
struct udl_device *udl = dev->dev_private;
|
||||
struct udl_device *udl = to_udl(dev);
|
||||
int ret = 0;
|
||||
|
||||
mutex_lock(&udl->gem_lock);
|
||||
|
Reference in New Issue
Block a user