From: Ville Syrjälä Date: Fri, 22 Feb 2013 14:12:51 +0000 (+0200) Subject: drm/i915: Add to_user_ptr() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~60^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb4629add2e648f1822872cce72f0fe163ce605;p=pandora-kernel.git 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 . Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed