drm: Convert proc files to seq_file and introduce debugfs
authorBen Gamari <bgamari@gmail.com>
Wed, 18 Feb 2009 01:08:49 +0000 (20:08 -0500)
committerEric Anholt <eric@anholt.net>
Fri, 27 Mar 2009 22:12:00 +0000 (15:12 -0700)
commit28a62277e06f93729d0340d9659153dcfbdbe16d
tree6fbdd815754c329273d3bdb5adb31fc1f308ae32
parent40a5f0decdf050785ebd62b36ad48c869ee4b384
drm: Convert proc files to seq_file and introduce debugfs

The old mechanism to formatting proc files is extremely ugly. The
seq_file API was designed specifically for cases like this and greatly
simplifies the process.

Also, most of the files in /proc really don't belong there. This patch
introduces the infrastructure for putting these into debugfs and exposes
all of the proc files in debugfs as well.

Signed-off-by: Ben Gamari <bgamari@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_info.c [new file with mode: 0644]
drivers/gpu/drm/drm_proc.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h