summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-27 13:12:12 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-27 15:43:25 +0200
commit734ae3ebcfc0eacd988325e9c399cc7b8ad0220c (patch)
treed34fd8c8e497457f3a982225109ed0a75b074b27 /lib/igt_debugfs.c
parent430c1345d8a00d9c95a8e0852a61de67116143e5 (diff)
lib: update docs for igt_debugfs
- gtk-doc requires that the names in comments match the ones in the header declaration. - igt_debugfs_dir works together with igt_sysfs_get(). Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 66398aca..103fe4d4 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -47,7 +47,7 @@
*
* This library provides helpers to access debugfs features. On top of some
* basic functions to access debugfs files with e.g. igt_debugfs_open() it also
- * provides higher-level wrappers for some debugfs features
+ * provides higher-level wrappers for some debugfs features.
*
* # Pipe CRC Support
*
@@ -804,17 +804,17 @@ int igt_get_stable_obj_count(int driver)
* @device: fd of the device (or -1 to default to Intel)
*
* This opens the debugfs directory corresponding to device for use
- * with igt_debugfs_set() and igt_debugfs_get().
+ * with igt_sysfs_get() and related functions.
*
* Returns:
* The directory fd, or -1 on failure.
*/
-int igt_debugfs_dir(int fd)
+int igt_debugfs_dir(int device)
{
struct stat st;
char path[256];
- if (fstat(fd, &st) || !S_ISCHR(st.st_mode))
+ if (fstat(device, &st) || !S_ISCHR(st.st_mode))
return -1;
sprintf(path, "%s/dri/%d", __debugfs_mount(), (int)(st.st_rdev & 0xff));