diff options
| author | 2013-02-22 16:12:51 +0200 | |
|---|---|---|
| committer | 2013-03-03 19:49:11 +0100 | |
| commit | 2bb4629add2e648f1822872cce72f0fe163ce605 (patch) | |
| tree | 019ee35e089baacdefa33211798825fa3ea5953c /tools/lib/python | |
| parent | drm/i915: gen2 has no tv out support (diff) | |
drm/i915: Add to_user_ptr()
to_user_ptr() simply casts a pointer passed as u64 from user space
to void __user * correctly. Using this lets us get rid of all the
tiresome casts.
The idea came from Chris Wilson <chris@chris-wilson.co.uk>.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
