commit | 2bb4629add2e648f1822872cce72f0fe163ce605 | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Fri Feb 22 16:12:51 2013 +0200 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Sun Mar 03 19:49:11 2013 +0100 |
tree | 019ee35e089baacdefa33211798825fa3ea5953c | |
parent | 83f377abed03e46eb3b6ce14a91291e7cdf86647 [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>