Commit d31fc344 authored by Dave Airlie's avatar Dave Airlie

- Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code to get

the drm_file_t * based on the filp passed in ioctl handlers. 
parent 13723b10
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
/** 'free' without the overhead of DRM(free)() */ /** 'free' without the overhead of DRM(free)() */
#define DRM_FREE(x,size) kfree(x) #define DRM_FREE(x,size) kfree(x)
#define DRM_GET_PRIV_WITH_RETURN(_priv, _filp) _priv = _filp->private_data
/** /**
* Get the pointer to the SAREA. * Get the pointer to the SAREA.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment