]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use simple attribute in debugfs routines
authorKees Cook <keescook@chromium.org>
Sun, 10 Mar 2013 21:10:06 +0000 (14:10 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 Mar 2013 20:16:45 +0000 (21:16 +0100)
commitf57f6ab69c8902ad6518008be236bfeb11b873fe
treefaa5376b3b2f37cf5ae4353b1d7a506a88c16454
parent77c8bb4893942a21a5ec93f47669e636e27dbf44
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 <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>
drivers/gpu/drm/i915/i915_debugfs.c