From: Kees Cook Date: Sun, 10 Mar 2013 21:10:06 +0000 (-0700) Subject: drm/i915: use simple attribute in debugfs routines X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~60^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=647416f9eefe7699754b01b9fc82758fde83248c;p=pandora-kernel.git drm/i915: use simple attribute in debugfs routines This replaces the manual read/write routines in debugfs with the common simple attribute helpers. Doing this gets rid of repeated copy/pasting of copy_from_user and value formatting code. Signed-off-by: Kees Cook Cc: Daniel Vetter [danvet: Squash in follow-up fix from Kees Cook to fix u64 divides on 32bit platforms.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed