Skip to content

Commit

Permalink
drm/i915: use simple attribute in debugfs routines
Browse files Browse the repository at this point in the history
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 <keescook@chromium.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
[danvet: Squash in follow-up fix from Kees Cook to fix u64 divides on
32bit platforms.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Kees Cook authored and Daniel Vetter committed Mar 13, 2013
1 parent 5c67eeb commit 647416f
Showing 1 changed file with 104 additions and 302 deletions.
Loading

0 comments on commit 647416f

Please sign in to comment.